3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileHandle = fopen('php://memory', 'r+'); $string = '<?php class Foo { public function __construct($x) { $this->x = $x; } }'; rewind($fileHandle); fwrite($fileHandle, '$string'); include 'php://memory'; $test = new Foo(5);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01116.75
8.3.50.0110.00316.51
8.3.40.0110.00318.96
8.3.30.0000.01418.93
8.3.20.0000.00719.99
8.3.10.0060.00321.54
8.3.00.0050.00319.50
8.2.180.0140.00418.66
8.2.170.0110.00322.96
8.2.160.0030.01020.50
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00320.97
8.2.120.0050.00326.35
8.2.110.0030.00722.16
8.2.100.0040.00917.97
8.2.90.0000.00819.21
8.2.80.0050.00318.03
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0000.00720.42
8.2.30.0000.00820.91
8.2.20.0040.00418.05
8.2.10.0040.00418.13
8.2.00.0070.00017.98
8.1.280.0070.01425.92
8.1.270.0000.00822.09
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.97
8.1.230.0100.00317.82
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0040.00417.13
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0050.00320.28
8.1.160.0050.00318.88
8.1.150.0050.00320.61
8.1.140.0050.00519.48
8.1.130.0030.00318.88
8.1.120.0000.00717.39
8.1.110.0000.00717.32
8.1.100.0070.00017.46
8.1.90.0000.00717.44
8.1.80.0040.00417.43
8.1.70.0030.00317.35
8.1.60.0000.00817.63
8.1.50.0070.00017.46
8.1.40.0030.00617.55
8.1.30.0030.00617.75
8.1.20.0060.00317.71
8.1.10.0040.00417.67
8.1.00.0050.00317.47
8.0.300.0040.00418.77
8.0.290.0040.00416.86
8.0.280.0030.00318.42
8.0.270.0030.00517.21
8.0.260.0040.00416.86
8.0.250.0020.00516.99
8.0.240.0020.00516.95
8.0.230.0040.00417.07
8.0.220.0030.00317.01
8.0.210.0070.00017.00
8.0.200.0030.00316.95
8.0.190.0030.00816.94
8.0.180.0040.00417.07
8.0.170.0000.00816.97
8.0.160.0020.00517.07
8.0.150.0040.00417.04
8.0.140.0070.00416.99
8.0.130.0000.00613.42
8.0.120.0070.00016.86
8.0.110.0000.00716.96
8.0.100.0050.00317.04
8.0.90.0000.00716.80
8.0.80.0040.01117.05
8.0.70.0000.00716.84
8.0.60.0050.00216.84
8.0.50.0000.00717.07
8.0.30.0070.01017.21
8.0.20.0120.00917.40
8.0.10.0040.00417.07
8.0.00.0090.00916.79
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0000.00716.61
7.4.290.0040.00716.48
7.4.280.0040.00416.57
7.4.270.0060.00016.41
7.4.260.0070.00016.57
7.4.250.0000.00816.59
7.4.240.0040.00416.50
7.4.230.0030.00316.71
7.4.220.0100.00716.51
7.4.210.0030.01316.56
7.4.200.0030.00316.38
7.4.160.0070.01116.55
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0110.00716.57
7.4.120.0110.00616.53
7.4.110.0100.00716.34
7.4.100.0110.00716.51
7.4.90.0060.01116.54
7.4.80.0090.00919.39
7.4.70.0090.00616.58
7.4.60.0060.00916.35
7.4.50.0030.01316.51
7.4.40.0140.00316.40
7.4.30.0070.01016.54
7.4.00.0060.01114.82
7.3.330.0000.00513.13
7.3.320.0000.00513.08
7.3.310.0040.00416.41
7.3.300.0030.00316.34
7.3.290.0000.00716.36
7.3.280.0080.00916.34
7.3.270.0100.01317.40
7.3.260.0130.00716.42
7.3.250.0060.01216.43
7.3.240.0090.00816.38
7.3.230.0160.00716.28
7.3.210.0060.00916.38
7.3.200.0060.01316.37
7.3.190.0160.00016.53
7.3.180.0120.00416.48
7.3.170.0110.00416.34
7.3.160.0100.00716.37
7.3.120.0020.01614.76
7.3.110.0090.00814.82
7.3.100.0060.00914.90
7.3.90.0090.00614.68
7.3.80.0050.01014.71
7.3.70.0060.00914.72
7.3.60.0040.01214.80
7.3.50.0050.00514.74
7.3.40.0070.00514.77
7.3.30.0080.00714.81
7.3.20.0050.00916.42
7.3.10.0050.00916.67
7.3.00.0040.01216.41
7.2.330.0070.01316.43
7.2.320.0100.00716.56
7.2.310.0090.01316.52
7.2.300.0120.00616.51
7.2.290.0110.01116.35
7.2.250.0080.01015.11
7.2.240.0080.01215.07
7.2.230.0060.01114.97
7.2.220.0030.01015.16
7.2.210.0040.01014.92
7.2.200.0080.00514.90
7.2.190.0060.01015.07
7.2.180.0030.01014.92
7.2.170.0090.00614.87
7.2.60.0000.00717.00
7.2.00.0030.00919.08
7.1.330.0040.01115.70
7.1.320.0030.01215.72
7.1.310.0090.00815.92
7.1.300.0060.01015.64
7.1.290.0020.01315.63
7.1.280.0060.00815.82
7.1.270.0070.00715.59
7.1.260.0070.00715.86
7.1.200.0070.00715.80
7.1.100.0000.01118.13
7.1.70.0130.00615.12
7.1.60.0230.01033.28
7.1.50.0210.01132.91
7.1.40.0340.00032.47
7.1.30.0240.01032.57
7.1.20.0280.01432.58
7.1.10.0120.00914.55
7.1.00.0140.01414.67
7.0.200.0130.00714.82
7.0.190.0130.00614.70
7.0.180.0150.00714.57
7.0.170.0090.01114.43
7.0.160.0110.01114.26
7.0.150.0120.00814.48
7.0.140.0640.01014.44
7.0.130.0230.00714.60
7.0.120.0160.01014.71
7.0.110.0150.00614.68
7.0.100.0090.01214.53
7.0.90.0120.00814.36
7.0.80.0180.00314.69
7.0.70.0120.00914.34
7.0.60.0100.01314.32
7.0.50.0150.00614.61
7.0.40.0150.00614.56
7.0.30.0150.00614.47
7.0.20.0140.00714.55
7.0.10.0090.01214.77
7.0.00.0210.00014.50

preferences:
42.99 ms | 400 KiB | 5 Q