3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $foo = new Foo; $rounds = 1000000; $start = microtime(true); for($i=0; $i<$rounds; $i++) { get_class($foo); } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { $class = new ReflectionClass($foo); $class->getShortName(); } echo (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.2.00.0070.25019.45
7.1.70.0000.32917.26
7.1.60.0470.29119.30
7.1.50.0100.32416.52
7.1.00.0030.35022.43
7.0.200.0070.31716.76
7.0.140.0000.40721.96
7.0.120.0030.32722.16
7.0.80.0070.42319.86
7.0.70.0200.43019.96
7.0.60.0130.48019.96
7.0.50.0230.34320.38
7.0.40.0100.42020.18
7.0.30.0070.30020.17
7.0.20.0000.34020.05
7.0.10.0570.33320.02
7.0.00.0000.38020.12
5.6.280.0070.72720.89
5.6.230.0070.78720.63
5.6.220.0030.74720.65
5.6.210.0230.72320.66
5.6.200.0030.62321.05
5.6.190.0130.69021.06
5.6.180.0000.63321.09
5.6.170.0070.63021.02
5.6.160.0070.76321.16
5.6.150.0070.66720.94
5.6.140.0070.79020.93
5.6.130.0000.72021.01
5.6.120.0130.75020.95
5.6.110.0030.79721.02
5.6.100.0100.76721.00
5.6.90.0170.61021.06
5.6.80.0030.70320.46
5.6.70.0100.70020.46
5.6.60.0030.71020.54
5.6.50.0100.77320.44
5.6.40.0070.77020.53
5.6.30.0100.79720.40
5.6.20.0100.90020.45
5.6.10.0070.74720.43
5.6.00.0030.66020.35
5.5.370.0070.72320.42
5.5.360.0100.78020.35
5.5.350.0030.78720.33
5.5.340.0170.67320.83
5.5.330.0100.77020.88
5.5.320.0070.68720.92
5.5.310.0100.68320.87
5.5.300.0070.63720.91
5.5.290.0030.90720.92
5.5.280.0030.77320.83
5.5.270.0100.77720.77
5.5.260.0170.71020.91
5.5.250.0130.60020.65
5.5.240.0070.79320.25
5.5.230.0100.76320.11
5.5.220.0100.71320.23
5.5.210.0030.79320.17
5.5.200.0170.89720.24
5.5.190.0000.68720.24
5.5.180.0130.77320.24
5.5.160.0000.61320.22
5.5.150.0130.71020.18
5.5.140.0070.80020.18
5.5.130.0170.76720.12
5.5.120.0070.67020.18
5.5.110.0070.75320.26
5.5.100.0070.86720.07
5.5.90.0170.77320.09
5.5.80.0070.68020.15
5.5.70.0030.72320.06
5.5.60.0800.65020.09
5.5.50.0000.69020.11
5.5.40.0130.66020.05
5.5.30.0070.65720.07
5.5.20.0030.71320.13
5.5.10.0070.76320.08
5.5.00.0030.76019.94
5.4.450.0030.77319.40
5.4.440.0600.66019.35
5.4.430.0100.78019.20
5.4.420.0100.77319.48
5.4.410.0170.74319.40
5.4.400.0570.59719.19
5.4.390.0100.66718.92
5.4.380.0030.76319.18
5.4.370.0030.69319.20
5.4.360.0070.77018.85
5.4.350.0030.77319.09
5.4.340.0070.75019.09
5.4.320.0070.78319.04
5.4.310.0100.75719.13
5.4.300.0030.66018.94
5.4.290.0070.78019.15
5.4.280.0000.77719.04
5.4.270.0070.75319.09
5.4.260.0130.74318.88
5.4.250.0700.58719.14
5.4.240.0000.65319.03
5.4.230.0030.63018.93
5.4.220.0570.62019.16
5.4.210.0100.67019.02
5.4.200.0100.60019.22
5.4.190.0000.82019.15
5.4.180.0100.76318.86
5.4.170.0100.78319.03
5.4.160.0100.74318.93
5.4.150.0030.70719.19
5.4.140.0000.70316.41
5.4.130.0070.65716.18
5.4.120.0030.74316.43
5.4.110.0100.76716.49
5.4.100.0100.75316.50
5.4.90.0070.76016.44
5.4.80.0070.76716.32
5.4.70.0030.74316.42
5.4.60.0130.76316.41
5.4.50.0100.75316.37
5.4.40.0030.60016.29
5.4.30.0070.56716.31
5.4.20.0000.59716.36
5.4.10.0130.75716.29
5.4.00.0070.79015.86
5.3.290.0030.86314.62
5.3.280.0030.62714.57
5.3.270.0070.82314.69
5.3.260.0000.81014.59
5.3.250.0030.78714.63
5.3.240.0070.79314.52
5.3.230.0030.65314.65
5.3.220.0170.82714.49
5.3.210.0630.69714.48
5.3.200.0030.81314.67
5.3.190.0030.83014.62
5.3.180.0030.81014.68
5.3.170.0030.67714.53
5.3.160.0030.80714.55
5.3.150.0100.82714.62
5.3.140.0130.65314.58
5.3.130.0970.83714.56
5.3.120.0000.68314.57
5.3.110.0070.69014.63
5.3.100.0100.77714.08
5.3.90.0130.75013.93
5.3.80.0030.74014.00
5.3.70.0100.77014.04
5.3.60.0100.69314.10
5.3.50.0030.80713.93
5.3.40.0070.74013.84
5.3.30.0070.75314.04
5.3.20.0070.79013.61
5.3.10.0030.87713.71
5.3.00.0070.70313.57
5.2.170.0070.14311.86
5.2.160.0000.17311.86
5.2.150.0000.16011.86
5.2.140.0030.22011.86
5.2.130.0030.20011.86
5.2.120.0000.16011.86
5.2.110.0030.21311.86
5.2.100.0000.18711.86
5.2.90.0000.15311.86
5.2.80.0030.21011.86
5.2.70.0000.15011.86
5.2.60.0070.21011.86
5.2.50.0130.20311.86
5.2.40.0000.20711.86
5.2.30.0030.19311.86
5.2.20.0000.19011.86
5.2.10.0070.18711.86
5.2.00.0070.22011.86
5.1.60.0330.21011.86
5.1.50.0030.23011.86
5.1.40.0030.14711.86
5.1.30.0100.16311.86
5.1.20.0070.18711.86
5.1.10.0030.15011.86
5.1.00.0070.14311.86
5.0.50.0030.28011.86
5.0.40.0030.25711.86
5.0.30.0000.25711.86
5.0.20.0030.33011.86
5.0.10.0030.29011.86
5.0.00.0000.26011.86
4.4.90.0000.26711.86
4.4.80.0030.30711.86
4.4.70.0000.23711.86
4.4.60.0070.29011.86
4.4.50.0030.29311.86
4.4.40.0070.31311.86
4.4.30.0000.28711.86
4.4.20.0030.28711.86
4.4.10.0030.21011.86
4.4.00.0200.19711.86
4.3.110.0000.21311.86
4.3.100.0100.19011.86
4.3.90.0000.21711.86
4.3.80.0070.21711.86
4.3.70.0030.24011.86
4.3.60.0000.20011.86
4.3.50.0000.20011.86
4.3.40.0000.23311.86
4.3.30.0000.22011.86
4.3.20.0000.21311.86
4.3.10.0000.18311.86
4.3.00.0070.21011.86

preferences:
38.36 ms | 400 KiB | 5 Q