3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tstart1 = microtime(true); for($x=1; $x<=5000000; $x++); $tstop1 = microtime(true); print $tstop1 - $tstart1; print" > "; $tstart = microtime(true); for($x=1; $x<=5000000; ++$x); $tstop = microtime(true); print $tstop - $tstart;

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.3.120.0100.07014.71
7.3.110.0100.06914.95
7.3.100.0070.07214.64
7.3.90.0070.07314.79
7.3.80.0100.06914.75
7.3.70.0070.08114.80
7.3.60.0070.07214.67
7.3.50.0100.07714.67
7.3.40.0070.07214.67
7.3.30.0000.07714.81
7.3.20.0070.07216.46
7.3.10.0060.07416.61
7.3.00.0070.07616.46
7.2.240.0030.08114.79
7.2.230.0000.08015.00
7.2.220.0000.08014.80
7.2.210.0100.08114.95
7.2.200.0130.07914.80
7.2.190.0100.07814.83
7.2.180.0070.07514.81
7.2.170.0130.07014.95
7.2.160.0000.08014.92
7.2.150.0070.07717.14
7.2.140.0070.07716.78
7.2.130.0030.08517.06
7.2.120.0030.08016.82
7.2.110.0070.07316.91
7.2.100.0100.07216.81
7.2.90.0070.08216.75
7.2.80.0030.08616.64
7.2.70.0070.07616.91
7.2.60.0000.08116.89
7.2.50.0030.08417.00
7.2.40.0100.07916.92
7.2.30.0100.07516.90
7.2.20.0070.07717.11
7.2.10.0100.06816.88
7.2.00.0050.08618.12
7.1.330.0030.19915.87
7.1.320.0100.19415.74
7.1.310.0100.20015.83
7.1.300.0030.19815.78
7.1.290.0100.20115.51
7.1.280.0000.21415.70
7.1.270.0030.20215.83
7.1.260.0030.19815.83
7.1.250.0070.19615.52
7.1.70.0030.07017.16
7.1.60.0070.13119.82
7.1.50.0100.12316.89
7.1.00.0000.19322.36
7.0.200.0100.08916.81
7.0.140.0030.17022.18
7.0.70.0000.11021.78
7.0.60.0030.17021.72
7.0.50.0130.15322.11
7.0.40.0030.16320.13
7.0.30.0070.18020.05
7.0.20.0030.16720.07
7.0.10.0000.18020.13
7.0.00.0030.17320.09
5.6.280.0070.30021.14
5.6.220.0000.20320.66
5.6.210.0000.20320.55
5.6.200.0030.28321.04
5.6.190.0070.30021.06
5.6.180.0100.27720.94
5.6.170.0170.29321.04
5.6.160.0070.28321.09
5.6.150.0130.31721.02
5.6.140.0070.30321.00
5.6.130.0000.28720.98
5.6.120.0070.28721.04
5.6.110.0030.24720.91
5.6.100.0000.26721.02
5.6.90.0100.29020.90
5.6.80.0000.29320.31
5.6.70.0000.30720.40
5.6.60.0070.26720.41
5.6.50.0070.26320.33
5.6.40.0100.29320.39
5.6.30.0000.25020.45
5.6.20.0130.29720.45
5.6.10.0070.28720.47
5.6.00.0000.29020.38
5.5.360.0030.21020.52
5.5.350.0000.28720.32
5.5.340.0130.29020.82
5.5.330.0000.31720.72
5.5.320.0030.28020.86
5.5.310.0000.28320.91
5.5.300.0030.26320.85
5.5.290.0030.28020.78
5.5.280.0070.28720.87
5.5.270.0130.24720.62
5.5.260.0030.29720.84
5.5.250.0070.26020.68
5.5.240.0070.27720.11
5.5.230.0070.29720.28
5.5.220.0130.29020.24
5.5.210.0130.28020.16
5.5.200.0100.27320.16
5.5.190.0030.26020.11
5.5.180.0030.31720.10
5.5.160.0030.28020.12
5.5.150.0000.23720.19
5.5.140.0030.36720.25
5.5.130.0030.22320.16
5.5.120.0030.19020.14
5.5.110.0100.25320.21
5.5.100.0000.24720.11
5.5.90.0030.29020.14
5.5.80.0030.25020.14
5.5.70.0130.28320.04
5.5.60.0030.29320.13
5.5.50.0030.30020.04
5.5.40.0000.33020.04
5.5.30.0030.29720.09
5.5.20.0070.29020.01
5.5.10.0000.23319.96
5.5.00.0030.23720.00
5.4.450.0030.30019.23
5.4.440.0070.22719.11
5.4.430.0000.27019.43
5.4.420.0000.29719.41
5.4.410.0030.29319.29
5.4.400.0070.28019.08
5.4.390.0130.27319.05
5.4.380.0000.30019.02
5.4.370.0030.26718.80
5.4.360.0030.29318.92
5.4.350.0030.30018.96
5.4.340.0170.30018.96
5.4.320.0070.29319.14
5.4.310.0070.30019.05
5.4.300.0130.23319.02
5.4.290.0000.22019.14
5.4.280.0000.23319.09
5.4.270.0000.19319.06
5.4.260.0000.26019.14
5.4.250.0030.24319.06
5.4.240.0100.29319.04
5.4.230.0070.24318.80
5.4.220.0130.26719.11
5.4.210.0000.27719.02
5.4.200.0000.23319.09
5.4.190.0070.28018.77
5.4.180.0030.29319.10
5.4.170.0030.28719.21
5.4.160.0030.25719.20
5.4.150.0000.29019.12
5.4.140.0070.25316.27
5.4.130.0070.29016.26
5.4.120.0070.29716.32
5.4.110.0070.29016.43
5.4.100.0130.29016.35
5.4.90.0100.28316.23
5.4.80.0000.29016.32
5.4.70.0030.25716.16
5.4.60.0070.28716.22
5.4.50.0000.29316.35
5.4.40.0070.30316.24
5.4.30.0070.29316.30
5.4.20.0000.27016.16
5.4.10.0000.28316.17
5.4.00.0000.29315.86
5.3.290.0030.37014.65
5.3.280.0070.35314.56
5.3.270.0000.31714.45
5.3.260.0000.29014.44
5.3.250.0000.34714.46
5.3.240.0070.31714.59
5.3.230.0030.34714.50
5.3.220.0030.32714.39
5.3.210.0070.34314.57
5.3.200.0030.34714.54
5.3.190.0070.34714.52
5.3.180.0100.33714.55
5.3.170.0000.35014.55
5.3.160.0030.35014.38
5.3.150.0000.36714.54
5.3.140.0070.34314.41
5.3.130.0030.34014.55
5.3.120.0130.34714.53
5.3.110.0000.35014.41
5.3.100.0070.35014.02
5.3.90.0030.36014.00
5.3.80.0000.37713.78
5.3.70.0000.29313.77
5.3.60.0030.29013.75
5.3.50.0000.24713.91
5.3.40.0030.25013.88
5.3.30.0000.24713.89
5.3.20.0000.25313.62
5.3.10.0000.24313.65
5.3.00.0000.31713.64
5.2.170.0000.31011.85
5.2.160.0030.34711.85
5.2.150.0030.37311.85
5.2.140.0000.33311.85
5.2.130.0000.30011.85
5.2.120.0000.29711.85
5.2.110.0030.30011.85
5.2.100.0000.31011.85
5.2.90.0000.29711.85
5.2.80.0000.31011.85
5.2.70.0070.32011.85
5.2.60.0030.44311.85
5.2.50.0000.43711.85
5.2.40.0000.43311.85
5.2.30.0070.42311.85
5.2.20.0070.43711.85
5.2.10.0030.41011.85
5.2.00.0000.44011.85
5.1.60.0030.43311.85
5.1.50.0070.44711.85
5.1.40.0070.43311.85
5.1.30.0000.37011.85
5.1.20.0000.44711.85
5.1.10.0000.43011.85
5.1.00.0000.44711.85
5.0.50.0000.71311.85
5.0.40.0070.84011.85
5.0.30.0000.70711.85
5.0.20.0030.83011.85
5.0.10.0000.82011.85
5.0.00.0030.81311.85
4.4.90.0000.66311.85
4.4.80.0030.77011.85
4.4.70.0070.80311.85
4.4.60.0030.80711.85
4.4.50.0030.76311.85
4.4.40.0000.81711.85
4.4.30.0000.65311.85
4.4.20.0000.80711.85
4.4.10.0000.80311.85
4.4.00.0070.82011.85
4.3.110.0000.79711.85
4.3.100.0000.68011.85
4.3.90.0000.78711.85
4.3.80.0000.83011.85
4.3.70.0070.78711.85
4.3.60.0000.70711.85
4.3.50.0000.80011.85
4.3.40.0000.74311.85
4.3.30.0000.75711.85
4.3.20.0030.74011.85
4.3.10.0000.72711.85
4.3.00.0000.75011.85

preferences:
44.88 ms | 401 KiB | 5 Q