3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $y = 0; //dummy printf("<br>#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { eval('++$y;'); } printf("<br>#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { ++$y; } printf("<br>#1 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { ++$y; } printf("<br>#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { eval('++$y;'); } printf("<br>#1 RESULT %d, DONE IN %f", $y, microtime(true) - $start);

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.00.0120.00514.92
7.3.120.0100.00814.90
7.3.110.0080.00814.73
7.3.100.0070.01014.77
7.3.90.0050.00814.54
7.3.80.0030.01114.76
7.3.70.0040.01114.70
7.3.60.0100.00514.70
7.3.50.0100.00314.66
7.3.40.0050.00914.67
7.3.30.0050.00814.83
7.3.20.0090.00716.55
7.3.10.0040.01016.69
7.3.00.0070.00716.58
7.2.250.0060.01315.11
7.2.240.0070.01014.81
7.2.230.0070.00814.89
7.2.220.0090.00714.91
7.2.210.0050.00815.11
7.2.200.0100.00714.92
7.2.190.0110.00614.83
7.2.180.0050.01014.82
7.2.170.0020.00915.03
7.2.160.0070.00414.94
7.2.150.0060.00616.79
7.2.140.0040.01216.70
7.2.130.0130.00316.56
7.2.120.0030.00616.68
7.2.110.0070.00716.45
7.2.100.0080.00716.62
7.2.90.0060.00916.83
7.2.80.0100.00816.87
7.2.70.0100.00516.69
7.2.60.0050.01016.66
7.2.50.0100.00516.85
7.2.40.0070.00816.89
7.2.30.0110.00616.77
7.2.20.0100.00516.87
7.2.10.0120.00716.85
7.2.00.0110.00617.44
7.1.330.0050.01116.00
7.1.320.0020.01215.81
7.1.310.0070.00415.97
7.1.300.0060.00615.55
7.1.290.0060.00915.87
7.1.280.0070.00515.76
7.1.270.0050.00915.71
7.1.260.0000.01015.81
7.1.250.0060.00915.50
7.1.240.0000.00915.64
7.1.230.0090.00515.65
7.1.220.0090.00415.73
7.1.210.0090.00215.89
7.1.200.0070.00815.84
7.1.190.0090.00415.84
7.1.180.0100.00715.79
7.1.170.0050.00715.79
7.1.160.0060.00815.85
7.1.150.0080.00315.90
7.1.140.0130.00315.74
7.1.130.0110.00615.82
7.1.120.0070.00515.82
7.1.110.0110.00415.85
7.1.100.0040.01015.82
7.1.90.0120.00215.82
7.1.80.0070.00915.79
7.1.70.0100.00516.36
7.1.60.0060.00917.06
7.1.50.0090.00916.21
7.1.40.0150.00715.85
7.1.30.0090.00915.70
7.1.20.0100.00515.90
7.1.10.0130.00815.79
7.1.00.0070.02717.94
7.0.330.0060.00615.13
7.0.320.0080.00815.44
7.0.310.0090.00515.36
7.0.300.0070.00615.27
7.0.290.0040.00915.33
7.0.280.0040.00915.41
7.0.270.0080.00615.46
7.0.260.0070.00615.38
7.0.250.0030.01115.37
7.0.240.0070.00615.39
7.0.230.0060.00915.49
7.0.220.0080.00415.40
7.0.210.0050.00815.51
7.0.200.0080.00515.88
7.0.190.0070.01015.39
7.0.180.0100.00515.50
7.0.170.0080.00615.55
7.0.160.0080.00515.39
7.0.150.0040.00815.33
7.0.140.0090.03017.53
7.0.130.0090.00615.53
7.0.120.0090.00915.61
7.0.110.0040.01315.38
7.0.100.0100.00615.33
7.0.90.0080.00615.18
7.0.80.0040.01015.46
7.0.70.0100.02617.46
7.0.60.0070.03017.33
7.0.50.0030.02617.83
7.0.40.0030.03615.69
7.0.30.0060.02915.51
7.0.20.0090.02815.72
7.0.10.0130.02715.61
7.0.00.0060.03115.73
5.6.400.0070.00714.47
5.6.390.0040.00814.57
5.6.380.0060.00814.27
5.6.370.0030.01014.22
5.6.360.0080.00814.27
5.6.350.0090.00714.26
5.6.340.0050.01014.17
5.6.330.0110.00714.31
5.6.320.0090.00614.40
5.6.310.0080.00714.25
5.6.300.0100.00614.58
5.6.290.0060.01114.36
5.6.280.0050.03116.44
5.6.270.0080.00814.40
5.6.260.0060.00714.27
5.6.250.0060.00714.26
5.6.240.0100.00414.15
5.6.230.0140.00514.35
5.6.220.0100.02616.39
5.6.210.0080.03216.45
5.6.200.0050.03016.59
5.6.190.0080.02216.58
5.6.180.0050.01916.75
5.6.170.0110.02916.50
5.6.160.0090.02516.57
5.6.150.0070.03116.55
5.6.140.0040.03516.50
5.6.130.0080.03316.37
5.6.120.0100.02716.56
5.6.110.0050.03216.52
5.6.100.0100.02716.44
5.6.90.0040.03516.43
5.6.80.0070.02516.31
5.6.70.0100.02616.22
5.6.60.0080.03016.21
5.6.50.0060.02616.31
5.6.40.0080.02916.35
5.6.30.0060.03116.09
5.6.20.0080.01516.26
5.6.10.0050.02016.19
5.6.00.0040.01916.33
5.5.380.0080.00512.40
5.5.370.0080.00412.56
5.5.360.0070.03015.16
5.5.350.0060.03115.26
5.5.340.0050.02215.31
5.5.330.0040.03615.22
5.5.320.0060.02715.27
5.5.310.0050.03115.32
5.5.300.0050.03115.31
5.5.290.0100.02515.32
5.5.280.0060.03115.30
5.5.270.0050.03215.25
5.5.260.0070.03115.19
5.5.250.0030.03215.26
5.5.240.0060.02914.93
5.5.230.0080.02514.99
5.5.220.0100.02115.07
5.5.210.0060.03014.89
5.5.200.0070.02915.21
5.5.190.0050.03114.93
5.5.180.0060.02915.09
5.5.170.0110.00413.84
5.5.160.0020.02115.15
5.5.150.0020.02115.05
5.5.140.0070.01814.94
5.5.130.0070.01615.03
5.5.120.0020.02014.99
5.5.110.0090.01314.97
5.5.100.0030.01715.13
5.5.90.0080.01515.13
5.5.80.0040.01915.16
5.5.70.0060.01714.96
5.5.60.0070.01314.94
5.5.50.0060.01515.00
5.5.40.0060.01815.00
5.5.30.0110.01215.02
5.5.20.0040.01915.07
5.5.10.0060.01515.09
5.5.00.0070.01515.02
5.4.450.0040.02813.65
5.4.440.0070.03013.64
5.4.430.0070.02813.58
5.4.420.0060.03213.76
5.4.410.0060.02613.55
5.4.400.0020.03413.48
5.4.390.0060.02913.55
5.4.380.0070.02613.58
5.4.370.0060.02113.50
5.4.360.0110.02413.58
5.4.350.0050.02813.59
5.4.340.0030.03113.63
5.4.330.0040.00710.87
5.4.320.0070.01413.65
5.4.310.0060.01213.65
5.4.300.0070.01313.52
5.4.290.0030.01513.61
5.4.280.0040.01713.62
5.4.270.0030.01713.50
5.4.260.0080.01413.60
5.4.250.0040.02013.68
5.4.240.0020.01613.50
5.4.230.0050.01613.48
5.4.220.0050.01313.58
5.4.210.0030.01813.66
5.4.200.0060.01113.59
5.4.190.0040.01613.59
5.4.180.0050.01813.41
5.4.170.0040.01213.37
5.4.160.0060.01513.66
5.4.150.0060.01413.47
5.4.140.0050.01412.65
5.4.130.0080.01012.63
5.4.120.0050.01812.54
5.4.110.0080.01212.83
5.4.100.0040.01412.80
5.4.90.0020.01412.80
5.4.80.0040.01312.72
5.4.70.0030.01612.63
5.4.60.0070.01112.61
5.4.50.0060.01212.63
5.4.40.0050.01312.60
5.4.30.0040.01412.72
5.4.20.0040.01412.62
5.4.10.0030.01512.69
5.4.00.0070.01112.36
5.3.290.0070.01611.87
5.3.280.0030.01711.86
5.3.270.0040.01311.82
5.3.260.0040.01511.86
5.3.250.0040.02011.86
5.3.240.0030.01411.78
5.3.230.0020.01711.76
5.3.220.0050.01211.80
5.3.210.0070.01311.74
5.3.200.0030.01711.78
5.3.190.0010.01611.78
5.3.180.0040.01511.90
5.3.170.0030.01411.90
5.3.160.0040.01311.84
5.3.150.0050.01111.87
5.3.140.0030.01311.86
5.3.130.0020.01411.85
5.3.120.0060.01211.68
5.3.110.0050.01211.70
5.3.100.0050.01511.60
5.3.90.0050.01311.55
5.3.80.0060.01011.61
5.3.70.0070.01411.46
5.3.60.0060.01311.54
5.3.50.0050.01411.53
5.3.40.0070.01311.57
5.3.30.0050.01411.60
5.3.20.0060.02711.36
5.3.10.0020.02811.21
5.3.00.0020.02311.27
5.2.170.0080.00810.47
5.2.160.0030.01310.43
5.2.150.0040.01810.47
5.2.140.0020.01710.26
5.2.130.0000.02810.28
5.2.120.0030.03310.43
5.2.110.0070.03310.39
5.2.100.0050.02010.28
5.2.90.0080.02810.40
5.2.80.0010.03110.30
5.2.70.0050.03010.39
5.2.60.0020.03510.33
5.2.50.0090.03010.36
5.2.40.0070.02910.40
5.2.30.0070.02310.35
5.2.20.0060.02610.29
5.2.10.0050.02410.25
5.2.00.0070.02810.29
5.1.60.0080.0229.99
5.1.50.0050.0219.99
5.1.40.0040.02810.03
5.1.30.0050.0239.99
5.1.20.0050.03110.04
5.1.10.0050.02710.00
5.1.00.0030.0289.99
5.0.50.0070.0189.99
5.0.40.0010.0169.99
5.0.30.0030.0179.99
5.0.20.0000.0269.99
5.0.10.0050.0229.99
5.0.00.0000.0339.99
4.4.90.0030.0159.99
4.4.80.0020.0199.99
4.4.70.0030.0189.99
4.4.60.0020.0189.99
4.4.50.0000.0229.99
4.4.40.0020.0289.99
4.4.30.0050.0139.99
4.4.20.0050.0169.99
4.4.10.0030.0209.99
4.4.00.0060.0259.99
4.3.110.0030.0109.99
4.3.100.0010.0209.99
4.3.90.0030.0159.99
4.3.80.0020.0269.99
4.3.70.0000.0189.99
4.3.60.0040.0109.99
4.3.50.0030.0209.99
4.3.40.0000.0259.99
4.3.30.0040.0109.99
4.3.20.0000.0209.99
4.3.10.0050.0189.99
4.3.00.0050.0139.99

preferences:
40.92 ms | 400 KiB | 5 Q