3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Kitchen { private $yummy = 'cake'; } $time_start = microtime(true); for ($i = 0; $i < 100000; $i += 1) { $sweetsThief = new ReflectionProperty('Kitchen', 'yummy'); $sweetsThief->setAccessible(true); } echo microtime(true) - $time_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.2.00.0030.04519.48
7.1.70.0070.03717.16
7.1.60.0130.07619.40
7.1.50.0160.06816.93
7.1.00.0030.13322.36
7.0.200.0230.03614.50
7.0.140.0030.13021.93
7.0.120.0000.12321.96
7.0.60.0030.13720.04
7.0.50.0030.07317.95
7.0.40.0100.13320.11
7.0.30.0170.11320.23
7.0.20.0330.12320.21
7.0.10.0030.11720.30
7.0.00.0070.07720.05
5.6.280.0100.15720.88
5.6.210.0100.12020.47
5.6.200.0170.14718.18
5.6.190.0100.10020.34
5.6.180.0270.15320.55
5.6.170.0270.15720.52
5.6.160.0000.16020.50
5.6.150.0000.15718.14
5.6.140.0030.09718.16
5.6.130.0130.10018.24
5.6.120.0130.16720.98
5.6.110.0070.09720.95
5.6.100.0030.11720.99
5.6.90.0070.15721.00
5.6.80.0170.09320.39
5.5.350.0200.08320.37
5.5.340.0030.17017.99
5.5.330.0070.10320.21
5.5.320.0370.14720.27
5.5.310.0300.11720.23
5.5.300.0070.15317.98
5.5.290.0030.09717.95
5.5.280.0100.14720.77
5.5.270.0100.12720.77
5.5.260.0000.14720.67
5.5.250.0100.15320.57
5.5.240.0100.15020.36
5.4.450.0030.09719.47
5.4.440.0070.09319.20
5.4.430.0130.12719.40
5.4.420.0070.09019.56
5.4.410.0030.09319.34
5.4.400.0000.09719.13
5.4.390.0070.09019.24
5.4.380.0000.09319.12
5.4.370.0070.09018.87
5.4.360.0030.09018.85
5.4.350.0030.09019.15
5.4.340.0030.11718.92
5.4.320.0030.10718.86
5.4.310.0100.14019.24
5.4.300.0100.15318.92
5.4.290.0130.13019.17
5.4.280.0070.14718.85
5.4.270.0070.10318.85
5.4.260.0070.15318.98
5.4.250.0000.13319.11
5.4.240.0070.14018.84
5.4.230.0030.14718.93
5.4.220.0070.09719.14
5.4.210.0070.14318.84
5.4.200.0070.15719.14
5.4.190.0100.14019.13
5.4.180.0100.15719.14
5.4.170.0030.11719.25
5.4.160.0100.14319.13
5.4.150.0100.14719.12
5.4.140.0000.11016.41
5.4.130.0070.14316.35
5.4.120.0000.16316.35
5.4.110.0000.09716.37
5.4.100.0130.14716.43
5.4.90.0100.14716.30
5.4.80.0100.11016.52
5.4.70.0000.13316.43
5.4.60.0130.14716.45
5.4.50.0000.10316.46
5.4.40.0030.12016.38
5.4.30.0030.14016.44
5.4.20.0270.10316.34
5.4.10.0070.15016.27
5.4.00.0030.15015.86
5.3.290.0000.13014.70
5.3.280.0070.17314.63
5.3.270.0100.17014.61
5.3.260.0000.17014.61
5.3.250.0030.12314.63
5.3.240.0070.17014.59
5.3.230.0170.16014.60
5.3.220.0100.13314.56
5.3.210.0130.16014.61
5.3.200.0100.16314.56
5.3.190.0100.12314.70
5.3.180.0130.16014.57
5.3.170.0070.17014.62
5.3.160.0070.17014.58
5.3.150.0100.15014.63
5.3.140.0030.15014.57
5.3.130.0100.15314.69
5.3.120.0170.16714.56
5.3.110.0070.16014.70
5.3.100.0330.10314.02
5.3.90.0170.15314.01
5.3.80.0070.10014.16
5.3.70.0100.10313.96
5.3.60.0030.14714.06
5.3.50.0130.15013.99
5.3.40.0100.17013.94
5.3.30.0070.16013.90
5.3.20.0070.14713.65
5.3.10.0100.10713.81
5.3.00.0030.15013.58
5.2.170.0030.03011.11
5.2.160.0030.04311.20
5.2.150.0030.06311.11
5.2.140.0030.03311.05
5.2.130.0000.03711.12
5.2.120.0130.05311.16
5.2.110.0100.06011.10
5.2.100.0000.07011.15
5.2.90.0100.05711.07
5.2.80.0000.06311.09
5.2.70.0030.06311.16
5.2.60.0070.06011.08
5.2.50.0100.03711.02
5.2.40.0100.03011.14
5.2.30.0030.03010.85
5.2.20.0030.04010.95
5.2.10.0030.05311.00
5.2.00.0030.05310.60
5.1.60.0070.0539.99
5.1.50.0100.0509.99
5.1.40.0030.0509.94
5.1.30.0100.04310.33
5.1.20.0030.05010.38
5.1.10.0130.04710.04
5.1.00.0100.05010.04
5.0.50.0100.0408.52
5.0.40.0030.0238.37
5.0.30.0070.0538.21
5.0.20.0070.0408.26
5.0.10.0030.0278.23
5.0.00.0000.0438.29
4.4.90.0000.0377.88
4.4.80.0000.0377.88
4.4.70.0000.0307.88
4.4.60.0030.0237.88
4.4.50.0030.0207.88
4.4.40.0000.0577.88
4.4.30.0000.0337.88
4.4.20.0000.0377.88
4.4.10.0030.0177.88
4.4.00.0030.0477.88
4.3.110.0030.0377.88
4.3.100.0030.0337.88
4.3.90.0070.0307.88
4.3.80.0000.0477.88
4.3.70.0030.0337.88
4.3.60.0070.0277.88
4.3.50.0000.0377.88
4.3.40.0030.0507.88
4.3.30.0030.0337.88
4.3.20.0000.0377.88
4.3.10.0000.0237.88
4.3.00.0000.0177.88

preferences:
36.81 ms | 401 KiB | 5 Q