3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function fun() { echo "fooo"; } } $parts = ['Foo', 'fun']; (new $parts[0])->$parts[1]();

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)
8.3.60.0060.00918.43
8.3.50.0150.00521.20
8.3.40.0140.00318.79
8.3.30.0120.00318.58
8.3.20.0040.00420.34
8.3.10.0070.00021.86
8.3.00.0080.00020.21
8.2.180.0110.01118.54
8.2.170.0110.00422.96
8.2.160.0070.01020.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0090.00017.50
8.2.110.0080.00420.48
8.2.100.0040.00817.93
8.2.90.0040.00419.39
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0030.00617.68
8.2.50.0030.00518.07
8.2.40.0000.00719.39
8.2.30.0000.00820.63
8.2.20.0000.00717.70
8.2.10.0070.00018.13
8.2.00.0050.00218.00
8.1.280.0140.00025.92
8.1.270.0090.00623.81
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00322.57
8.1.230.0120.00317.42
8.1.220.0070.00017.77
8.1.210.0070.00418.77
8.1.200.0030.00617.38
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.63
8.1.160.0000.00822.00
8.1.150.0000.00818.91
8.1.140.0040.00417.50
8.1.130.0030.00317.72
8.1.120.0030.00517.52
8.1.110.0040.00417.38
8.1.100.0040.00417.52
8.1.90.0040.00417.34
8.1.80.0070.00017.50
8.1.70.0070.00017.45
8.1.60.0000.00817.45
8.1.50.0030.00617.45
8.1.40.0000.00817.42
8.1.30.0040.00417.52
8.1.20.0070.00017.67
8.1.10.0000.00817.52
8.1.00.0000.00717.53
8.0.300.0000.01018.77
8.0.290.0060.00316.75
8.0.280.0030.00318.36
8.0.270.0070.00017.26
8.0.260.0000.00817.25
8.0.250.0040.00416.91
8.0.240.0040.00416.90
8.0.230.0030.00317.04
8.0.220.0000.00716.80
8.0.210.0070.00017.03
8.0.200.0000.00717.04
8.0.190.0040.00716.98
8.0.180.0050.00316.98
8.0.170.0050.00317.08
8.0.160.0030.00317.04
8.0.150.0000.00716.81
8.0.140.0000.00716.84
8.0.130.0000.00813.35
8.0.120.0050.00216.93
8.0.110.0040.00416.84
8.0.100.0030.00616.95
8.0.90.0070.00016.84
8.0.80.0060.01016.94
8.0.70.0070.00017.08
8.0.60.0040.00416.82
8.0.50.0040.00416.99
8.0.30.0130.01317.37
8.0.20.0080.01217.40
8.0.10.0000.00817.05
8.0.00.0080.01316.79
7.4.330.0020.00215.08
7.4.320.0000.00616.38
7.4.300.0030.00316.66
7.4.290.0000.00716.50
7.4.280.0070.00016.63
7.4.270.0060.00016.49
7.4.260.0030.00316.52
7.4.250.0020.00516.55
7.4.240.0040.00416.58
7.4.230.0040.00416.52
7.4.220.0070.01116.48
7.4.210.0080.00816.54
7.4.200.0080.00016.32
7.4.160.0110.00516.37
7.4.150.0090.00917.40
7.4.140.0020.01917.86
7.4.130.0080.00916.60
7.4.120.0090.00816.51
7.4.110.0140.00316.50
7.4.100.0120.00616.51
7.4.90.0030.01516.49
7.4.80.0080.01219.39
7.4.70.0090.01216.48
7.4.60.0100.00616.46
7.4.50.0080.00016.36
7.4.40.0060.01216.55
7.4.30.0040.01216.47
7.4.00.0000.01515.21
7.3.330.0050.00013.19
7.3.320.0030.00313.34
7.3.310.0000.00716.21
7.3.300.0000.00816.36
7.3.290.0100.00416.34
7.3.280.0090.00716.38
7.3.270.0090.00917.40
7.3.260.0120.00416.33
7.3.250.0120.00616.36
7.3.240.0150.00416.65
7.3.230.0110.00516.47
7.3.210.0030.01316.37
7.3.200.0140.00316.35
7.3.190.0100.00616.50
7.3.180.0060.01216.39
7.3.170.0040.01516.32
7.3.160.0110.00716.48
7.3.10.0060.00616.71
7.3.00.0090.00916.25
7.2.330.0060.01216.66
7.2.320.0170.00016.44
7.2.310.0100.00716.79
7.2.300.0110.00416.34
7.2.290.0060.01316.33
7.2.130.0120.01216.67
7.2.120.0040.01316.47
7.2.110.0070.01016.75
7.2.100.0120.00916.97
7.2.90.0210.00316.54
7.2.80.0140.01116.85
7.2.70.0130.00316.90
7.2.60.0100.00716.48
7.2.50.0150.00316.83
7.2.40.0190.00416.55
7.2.30.0070.00816.82
7.2.20.0190.00316.75
7.2.10.0080.00816.45
7.2.00.0040.01417.99
7.1.250.0100.00715.32
7.1.200.0000.01415.84
7.1.100.0090.00618.14
7.1.70.0060.00617.27
7.1.60.0030.02019.14
7.1.50.0200.01734.80
7.1.00.0030.07722.36
7.0.200.0000.00716.78
7.0.70.5000.03719.90
7.0.60.0070.07719.82
7.0.50.0100.08317.94
7.0.40.0100.08720.23
7.0.30.0530.04020.07
7.0.20.0230.05320.07
7.0.10.0230.04320.09
7.0.00.0070.05320.24
5.6.280.0030.07320.79
5.6.210.0100.06320.44
5.6.200.0030.04018.14
5.6.190.0000.06020.66
5.6.180.0100.04720.75
5.6.170.0270.07720.48
5.6.160.0170.07320.52
5.6.150.0100.07018.29
5.6.140.0070.07318.18
5.6.130.0070.03718.28
5.6.120.0030.06321.12
5.6.110.0030.09320.99
5.6.100.0030.04320.96
5.6.90.0030.09320.97
5.6.80.0070.05320.52
5.6.70.0100.03320.47
5.5.350.0030.08320.32
5.5.340.0070.08018.09
5.5.330.0030.05020.37
5.5.320.0030.08320.41
5.5.310.0170.05720.41
5.5.300.0030.08717.97
5.5.290.0130.03017.91
5.5.280.0070.04320.80
5.5.270.0030.04720.66
5.5.260.0100.04020.76
5.5.250.0170.07720.50
5.5.240.0070.08020.36
5.4.450.0200.05719.58
5.4.440.0270.05019.60
5.4.430.0170.05719.58
5.4.420.0200.05319.60
5.4.410.0300.07019.34
5.4.400.0200.05019.33
5.4.390.0270.04319.29
5.4.380.0170.05719.29
5.4.370.0070.06719.16
5.4.360.0200.05319.13
5.4.350.0200.06719.29
5.4.340.0200.05719.15
5.4.320.0170.06019.15
5.4.310.0270.04719.01
5.4.300.0170.05319.29
5.4.290.0270.05319.25
5.4.280.0270.05018.83
5.4.270.0230.05019.05
5.4.260.0270.05018.98
5.4.250.0170.05719.30
5.4.240.0200.05019.28
5.4.230.0300.04318.82
5.4.220.0230.05019.25
5.4.210.0270.04319.22
5.4.200.0200.05019.15
5.4.190.0200.05019.13
5.4.180.0200.05019.21
5.4.170.0270.04718.86
5.4.160.0300.04018.99
5.4.150.0130.06018.99
5.4.140.0230.04716.50
5.4.130.0170.05016.45
5.4.120.0230.04316.51
5.4.110.0170.05316.28
5.4.100.0300.03716.42
5.4.90.0170.05016.62
5.4.80.0200.04716.23
5.4.70.0030.04716.53
5.4.60.0030.06316.25
5.4.50.0070.07316.51
5.4.40.0070.06016.51
5.4.30.0030.06316.42
5.4.20.0370.05716.58
5.4.10.0330.07316.32

preferences:
48.88 ms | 401 KiB | 5 Q