3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function foo() { print "foo"; } function bar() { $x = array(get_class(), "foo"); call_user_func($x); $x(); } } $a = new x; $a->bar(); ?>

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.40.0130.01018.93
8.3.30.0110.00418.83
8.3.20.0070.00020.13
8.3.10.0040.00421.80
8.3.00.0050.00222.50
8.2.170.0150.00022.96
8.2.160.0130.00020.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00417.75
8.2.110.0060.00319.24
8.2.100.0060.00617.63
8.2.90.0000.00719.39
8.2.80.0000.00817.97
8.2.70.0060.00317.48
8.2.60.0000.00917.90
8.2.50.0050.00318.07
8.2.40.0040.00421.20
8.2.30.0000.00719.72
8.2.20.0000.00717.66
8.2.10.0050.00218.12
8.2.00.0090.00017.96
8.1.270.0040.00420.14
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.81
8.1.230.0000.01217.42
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0080.00018.63
8.1.160.0030.00623.70
8.1.150.0040.00418.90
8.1.140.0000.00817.33
8.1.130.0060.00617.70
8.1.120.0050.00317.49
8.1.110.0040.00417.37
8.1.100.0000.00717.49
8.1.90.0040.00417.46
8.1.80.0000.00717.36
8.1.70.0020.00517.36
8.1.60.0050.00317.57
8.1.50.0060.00317.50
8.1.40.0000.00817.49
8.1.30.0070.00317.50
8.1.20.0030.00517.48
8.1.10.0050.00317.59
8.1.00.0040.00417.51
8.0.300.0030.00518.77
8.0.290.0060.00316.75
8.0.280.0000.00818.49
8.0.270.0040.00417.22
8.0.260.0030.00317.20
8.0.250.0040.00417.00
8.0.240.0000.00616.92
8.0.230.0030.00316.87
8.0.220.0000.00716.85
8.0.210.0000.00716.96
8.0.200.0000.00617.00
8.0.190.0000.00817.04
8.0.180.0000.00816.95
8.0.170.0000.00717.01
8.0.160.0050.00216.92
8.0.150.0030.00616.86
8.0.140.0000.00816.88
8.0.130.0070.00013.40
8.0.120.0040.00416.96
8.0.110.0040.00416.98
8.0.100.0040.00416.89
8.0.90.0070.00017.00
8.0.80.0040.01316.84
8.0.70.0040.00416.96
8.0.60.0050.00216.95
8.0.50.0040.00416.90
8.0.30.0110.00817.25
8.0.20.0120.00717.40
8.0.10.0050.00316.95
8.0.00.0110.00616.80
7.4.330.0000.00515.08
7.4.320.0030.00316.65
7.4.300.0000.00616.55
7.4.290.0020.00516.60
7.4.280.0030.00516.41
7.4.270.0000.00716.65
7.4.260.0030.00316.45
7.4.250.0000.00816.57
7.4.240.0000.00716.54
7.4.230.0000.00816.70
7.4.220.0170.00916.64
7.4.210.0060.01416.61
7.4.200.0030.00316.35
7.4.160.0060.01016.64
7.4.150.0180.00017.40
7.4.140.0100.01217.86
7.4.130.0120.00916.41
7.4.120.0070.01016.54
7.4.110.0060.01216.65
7.4.100.0080.01516.43
7.4.90.0090.00916.38
7.4.80.0060.01119.39
7.4.70.0070.01016.35
7.4.60.0130.00316.64
7.4.50.0050.00316.68
7.4.40.0060.00916.73
7.4.30.0100.00916.42
7.4.00.0090.00615.01
7.3.330.0030.00313.44
7.3.320.0050.00013.33
7.3.310.0040.00416.42
7.3.300.0000.00716.39
7.3.290.0030.00316.35
7.3.280.0100.00416.36
7.3.270.0090.00917.40
7.3.260.0140.00316.36
7.3.250.0080.00916.32
7.3.240.0130.01016.66
7.3.230.0000.01616.39
7.3.210.0060.01216.37
7.3.200.0030.01319.39
7.3.190.0060.01016.59
7.3.180.0120.00416.42
7.3.170.0100.00716.60
7.3.160.0100.01016.30
7.3.120.0040.01414.78
7.3.110.0070.01014.80
7.3.100.0040.01114.81
7.3.90.0000.00914.77
7.3.80.0000.01614.73
7.3.70.0030.01014.72
7.3.60.0100.00314.54
7.3.50.0110.00414.88
7.3.40.0090.00614.59
7.3.30.0040.01114.80
7.3.20.0030.01316.68
7.3.10.0030.01316.74
7.3.00.0060.00316.80
7.2.330.0090.00916.40
7.2.320.0120.00916.79
7.2.310.0110.00616.48
7.2.300.0090.01016.80
7.2.290.0140.00916.83
7.2.250.0070.00714.89
7.2.240.0130.00615.18
7.2.230.0060.00915.16
7.2.220.0040.00814.96
7.2.210.0110.00715.06
7.2.200.0090.00615.05
7.2.190.0120.00315.10
7.2.180.0120.00315.16
7.2.170.0030.00815.06
7.2.60.0090.00316.95
7.2.00.0030.00919.54
7.1.330.0070.00715.70
7.1.320.0090.00015.75
7.1.310.0070.00715.67
7.1.300.0000.01115.64
7.1.290.0070.00715.64
7.1.280.0030.00715.82
7.1.270.0120.00315.70
7.1.260.0040.00415.45
7.1.200.0090.00015.86
7.1.100.0080.00318.24
7.1.70.0090.00016.80
7.1.60.0100.01420.03
7.1.50.0070.01716.66
7.1.00.0100.07022.57
7.0.200.0250.00714.97
7.0.60.0170.06019.89
7.0.50.0130.07317.73
7.0.40.0030.04720.11
7.0.30.0330.03320.24
7.0.20.0230.04720.22
7.0.10.0130.04320.17
7.0.00.0070.08720.06
5.6.280.0070.05021.10
5.6.210.0100.07020.73
5.6.200.0200.04718.15
5.6.190.0000.09020.48
5.6.180.0230.04020.47
5.6.170.0230.07320.53
5.6.160.0100.06320.50
5.6.150.0230.03718.27
5.6.140.0200.07018.18
5.6.130.0170.07718.18
5.6.120.0070.07720.97
5.6.110.0030.04320.96
5.6.100.0000.07320.98
5.6.90.0000.04720.99
5.6.80.0100.08020.37
5.6.70.0400.07720.36
5.5.350.0030.08320.44
5.5.340.0130.07718.01
5.5.330.0070.05320.19
5.5.320.0170.04020.27
5.5.310.0200.08320.34
5.5.300.0070.08317.92
5.5.290.0070.04717.95
5.5.280.0030.06020.88
5.5.270.0030.04020.86
5.5.260.0070.08320.76
5.5.250.0100.06020.55
5.5.240.0070.08320.12
5.4.450.0170.07019.59
5.4.440.0400.04319.55
5.4.430.0330.06019.47
5.4.420.0200.08319.38
5.4.410.0130.05719.03
5.4.400.0270.05019.15
5.4.390.0230.04718.84
5.4.380.0070.06019.28
5.4.370.0300.06719.15
5.4.360.0300.04719.14
5.4.350.0400.05719.24
5.4.340.0170.05719.25
5.4.320.0270.05019.14
5.4.310.0230.04719.24
5.4.300.0230.06318.87
5.4.290.0230.07318.84
5.4.280.0170.08018.99
5.4.270.0170.05719.15
5.4.260.0200.05019.36
5.4.250.0230.05018.97
5.4.240.0170.05319.27
5.4.230.0170.05019.26
5.4.220.0300.06019.14
5.4.210.0170.05319.10
5.4.200.0100.05316.89
5.4.190.0130.05319.13
5.4.180.0230.04319.06
5.4.170.0130.05719.24
5.4.160.0170.06019.34
5.4.150.0100.06019.33
5.4.140.0200.05716.52
5.4.130.0200.04316.38
5.4.120.0100.06316.55
5.4.110.0170.05016.50
5.4.100.0330.05016.34
5.4.90.0100.05716.55
5.4.80.0230.04316.29
5.4.70.0170.05716.41
5.4.60.0070.07716.48
5.4.50.0030.07716.55
5.4.40.0100.06716.54
5.4.30.0330.04316.53
5.4.20.0270.07016.53

preferences:
49.93 ms | 400 KiB | 5 Q