3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = $test2 = $test3 = $test4 = 0; foreach(range(1 , 100) as $row) { $rand = rand(1,4); ${'test'.$rand}++; } var_dump($test1 , $test2 , $test3 , $test4);

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)
7.4.10.0030.01814.57
7.4.00.0090.00915.05
7.3.130.0090.00614.52
7.3.120.0080.01014.53
7.3.110.0060.00914.64
7.3.100.0100.00514.65
7.3.90.0050.00914.78
7.3.80.0040.01114.71
7.3.70.0050.00814.77
7.3.60.0050.00614.63
7.3.50.0030.00914.71
7.3.40.0050.00814.62
7.3.30.0070.00614.62
7.3.20.0080.00716.37
7.3.10.0080.01016.65
7.3.00.0050.00916.48
7.2.260.0070.01014.80
7.2.250.0090.00915.16
7.2.240.0120.00314.91
7.2.230.0070.00815.08
7.2.220.0060.00615.04
7.2.210.0050.00915.00
7.2.200.0030.00915.07
7.2.190.0040.01214.88
7.2.180.0060.00815.09
7.2.170.0060.00914.80
7.2.160.0120.00314.93
7.2.150.0050.00916.81
7.2.140.0050.00716.95
7.2.130.0030.00916.67
7.2.120.0060.00916.69
7.2.110.0040.01216.89
7.2.100.0040.00816.88
7.2.90.0100.00516.77
7.2.80.0030.00916.70
7.2.70.0070.00716.95
7.2.60.0040.00916.76
7.2.50.0070.00616.97
7.2.40.0070.00616.82
7.2.30.0060.00916.96
7.2.20.0040.01016.70
7.2.10.0080.00716.82
7.2.00.0040.01016.90
7.1.330.0060.00715.60
7.1.320.0050.00415.54
7.1.310.0030.01315.75
7.1.300.0060.00915.79
7.1.290.0030.00715.70
7.1.280.0050.01115.45
7.1.270.0070.00715.68
7.1.260.0090.00515.65
7.1.250.0080.00515.71
7.1.240.0040.00415.69
7.1.230.0040.00815.51
7.1.220.0060.00615.54
7.1.210.0030.00515.54
7.1.200.0060.00915.33
7.1.190.0060.00615.46
7.1.180.0070.01015.52
7.1.170.0060.00615.56
7.1.160.0070.00715.66
7.1.150.0040.00415.80
7.1.140.0030.00715.59
7.1.130.0070.00715.70
7.1.120.0000.00915.34
7.1.110.0030.01315.70
7.1.100.0120.00315.88
7.1.90.0040.01115.84
7.1.80.0080.00315.54
7.1.70.0090.00615.72
7.1.60.0030.00915.86
7.1.50.0080.00415.63
7.1.40.0160.00015.68
7.1.30.0070.01115.79
7.1.20.0120.00415.67
7.1.10.0060.00615.64
7.1.00.0070.00715.53

preferences:
29.13 ms | 403 KiB | 5 Q