3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { return; } function b() { return false; } $start = microtime(true); for ($i = 0; $i<999999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<999999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n";

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.2.00.0040.04919.27
7.1.70.0070.04716.91
7.1.60.0070.07319.40
7.1.50.0030.08016.92
7.1.00.0000.07722.44
7.0.200.0000.06216.97
7.0.140.0100.13022.21
7.0.60.0000.14721.66
7.0.50.0030.09717.92
7.0.40.3600.08720.20
7.0.30.4070.08320.10
7.0.20.3800.07720.15
7.0.10.3200.08720.06
7.0.00.3570.08020.19
5.6.280.0000.31020.92
5.6.210.0230.19020.65
5.6.200.0100.22718.24
5.6.190.3830.15020.55
5.6.180.5530.14020.50
5.6.170.4170.15720.52
5.6.160.3430.15720.51
5.6.150.3230.15320.31
5.6.140.0030.15020.30
5.6.130.4230.14320.27
5.6.120.1270.18020.30
5.6.110.0070.20020.30
5.6.100.3270.15720.26
5.6.90.0030.23020.19
5.6.80.4270.15019.77
5.6.70.3270.14019.64
5.6.60.4230.14719.61
5.6.50.3600.16319.72
5.6.40.3370.14019.72
5.6.30.4570.13719.89
5.6.20.3370.15019.75
5.6.10.2930.15719.67
5.6.00.3300.14719.62
5.5.350.0100.15020.51
5.5.340.0130.15317.96
5.5.330.1000.15320.41
5.5.320.3870.14020.34
5.5.310.4200.15020.30
5.5.300.0070.20320.18
5.5.290.4170.15720.07
5.5.280.0130.20720.11
5.5.270.0030.19320.15
5.5.260.4000.14720.14
5.5.250.0170.15719.96
5.5.240.4200.14719.50
5.5.230.3230.14319.47
5.5.220.4270.14719.48
5.5.210.4170.15019.53
5.5.200.2930.14019.41
5.5.190.3300.15019.36
5.5.180.2930.14019.42
5.5.160.3330.13719.50
5.5.150.3830.14719.43
5.5.140.3300.15319.45
5.5.130.4070.14719.52
5.5.120.4100.14719.67
5.5.110.4230.13719.45
5.5.100.4170.15019.36
5.5.90.4030.15019.40
5.5.80.4300.14319.32
5.5.70.4170.15319.36
5.5.60.3770.18019.38
5.5.50.3270.14019.34
5.5.40.3730.14319.38
5.5.30.3900.15019.39
5.5.20.3300.15719.41
5.5.10.3700.14319.35
5.5.00.3330.14719.30
5.4.450.3770.14319.34
5.4.440.0000.20019.38
5.4.430.1300.17719.46
5.4.420.3830.15019.46
5.4.410.0030.14719.18
5.4.400.4030.14319.15
5.4.390.3430.13319.27
5.4.380.4200.13719.28
5.4.370.4000.13719.05
5.4.360.3070.15319.06
5.4.350.2770.13718.98
5.4.340.3170.13718.90
5.4.320.3130.14018.95
5.4.310.3700.14319.13
5.4.300.3530.14319.03
5.4.290.3600.14319.03
5.4.280.3900.14019.03
5.4.270.4200.14318.97
5.4.260.3600.14719.04
5.4.250.4330.14018.96
5.4.240.4070.14319.04
5.4.230.4070.14719.09
5.4.220.3570.13718.88
5.4.210.3770.14319.30
5.4.200.3530.14319.09
5.4.190.4270.14019.01
5.4.180.3430.14319.12
5.4.170.3230.14019.04
5.4.160.3830.14319.00
5.4.150.4200.14019.02
5.4.140.3500.13716.41
5.4.130.3830.14316.37
5.4.120.3370.13016.37
5.4.110.3670.13716.54
5.4.100.3530.14016.38
5.4.90.3970.14016.46
5.4.80.3500.13716.45
5.4.70.3970.14316.63
5.4.60.4230.14016.45
5.4.50.3200.14716.35
5.4.40.3170.14316.61
5.4.30.3470.14716.44
5.4.20.0070.21016.52
5.4.10.0130.19016.39
5.4.00.1800.16015.73
5.3.290.3230.27014.71
5.3.280.4170.26314.66
5.3.270.3670.27314.45
5.3.260.4070.28014.62
5.3.250.4100.27314.63
5.3.240.4000.27014.71
5.3.230.3700.27714.61
5.3.220.3430.27714.64
5.3.210.3430.25714.64
5.3.200.3600.27314.60
5.3.190.4000.28014.57
5.3.180.3400.26314.66
5.3.170.3870.27014.56
5.3.160.4270.28314.67
5.3.150.3430.27314.42
5.3.140.3500.27314.55
5.3.130.3330.27314.56
5.3.120.3230.31314.52
5.3.110.0000.30014.61
5.3.100.3300.26714.06
5.3.90.3630.27313.97
5.3.80.4170.27314.05
5.3.70.4070.28313.87
5.3.60.3600.26014.03
5.3.50.3370.26014.05
5.3.40.3230.27313.84
5.3.30.3530.27713.96
5.3.20.0070.31313.70
5.3.10.3330.27313.73
5.3.00.3200.26713.86
5.2.170.2770.31011.19
5.2.160.3530.32011.20
5.2.150.3030.33011.13
5.2.140.0830.35311.04
5.2.130.0070.36011.31
5.2.120.0130.37711.11
5.2.110.3370.40711.20
5.2.100.2170.31011.32
5.2.90.1670.32711.00
5.2.80.1870.32311.07
5.2.70.1900.31311.20
5.2.60.1530.41310.95
5.2.50.1330.31311.08
5.2.40.0330.35310.90
5.2.30.0400.34311.05
5.2.20.0370.35711.05
5.2.10.0400.35710.82
5.2.00.0400.33010.74
5.1.60.0400.35310.05
5.1.50.0430.36710.02
5.1.40.0700.32710.04
5.1.30.0330.33010.38
5.1.20.0470.43310.41
5.1.10.0470.44010.06
5.1.00.0400.39010.05
5.0.50.0030.4978.38
5.0.40.0000.5008.35
5.0.30.0470.5008.43
5.0.20.0370.5038.17
5.0.10.0370.4938.27
5.0.00.0430.5238.23
4.4.90.0270.4375.95
4.4.80.0000.4405.85
4.4.70.0000.4975.86
4.4.60.0000.4735.81
4.4.50.0000.5105.86
4.4.40.0070.5235.89
4.4.30.0030.5175.95
4.4.20.0030.5106.00
4.4.10.0000.4976.01
4.4.00.0000.5175.88
4.3.110.0000.4935.79
4.3.100.0300.4405.80
4.3.90.0370.4635.79
4.3.80.0500.5035.70
4.3.70.0500.4875.80
4.3.60.0400.4605.79
4.3.50.0000.5075.80
4.3.40.0030.5135.77
4.3.30.0000.4935.29
4.3.20.0000.4975.29
4.3.10.0400.5435.29
4.3.00.0000.4975.29

preferences:
37.58 ms | 401 KiB | 5 Q