3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function foo() { print "foo"; } function bar() { $x = array(get_class(), "self::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.60.0120.00918.43
8.3.50.0140.00418.06
8.3.40.0030.01218.77
8.3.30.0100.00319.23
8.3.20.0030.00520.16
8.3.10.0050.00320.53
8.3.00.0090.00019.26
8.2.180.0130.00325.92
8.2.170.0070.00719.04
8.2.160.0000.01422.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0030.00622.05
8.2.110.0060.00322.05
8.2.100.0040.00817.97
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0030.00517.93
8.2.60.0030.00518.09
8.2.50.0040.00418.10
8.2.40.0040.00419.34
8.2.30.0000.00719.16
8.2.20.0040.00417.81
8.2.10.0040.00418.13
8.2.00.0050.00317.72
8.1.270.0000.00923.86
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0040.00719.17
8.1.220.0000.00717.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0030.00618.10
8.1.170.0030.00618.65
8.1.160.0030.00520.71
8.1.150.0040.00418.89
8.1.140.0000.00717.35
8.1.130.0040.00418.86
8.1.120.0030.00517.45
8.1.110.0000.00717.53
8.1.100.0040.00417.41
8.1.90.0070.00017.35
8.1.80.0000.00717.53
8.1.70.0030.00317.36
8.1.60.0050.00317.58
8.1.50.0040.00417.52
8.1.40.0050.00317.50
8.1.30.0080.00017.54
8.1.20.0040.00417.58
8.1.10.0000.00717.53
8.1.00.0060.00317.37
8.0.300.0040.00421.59
8.0.290.0000.00816.75
8.0.280.0050.00318.36
8.0.270.0040.00417.29
8.0.260.0000.00618.43
8.0.250.0040.00417.03
8.0.240.0000.00616.92
8.0.230.0000.00717.00
8.0.220.0000.00816.83
8.0.210.0050.00216.96
8.0.200.0000.00717.04
8.0.190.0080.00016.89
8.0.180.0070.00016.91
8.0.170.0080.00017.04
8.0.160.0040.00416.82
8.0.150.0050.00216.81
8.0.140.0070.00016.84
8.0.130.0050.00013.42
8.0.120.0040.00416.94
8.0.110.0040.00416.97
8.0.100.0040.00416.84
8.0.90.0070.00016.77
8.0.80.0030.01016.98
8.0.70.0070.00016.95
8.0.60.0040.00416.96
8.0.50.0030.00516.82
8.0.30.0080.01317.09
8.0.20.0100.00817.40
8.0.10.0040.00417.14
8.0.00.0150.00416.79
7.4.330.0030.00315.00
7.4.320.0000.00616.50
7.4.300.0060.00016.63
7.4.290.0030.00516.46
7.4.280.0000.00716.59
7.4.270.0050.00216.54
7.4.260.0000.00816.49
7.4.250.0000.00816.55
7.4.240.0020.00516.63
7.4.230.0070.00016.40
7.4.220.0150.00316.67
7.4.210.0120.00316.54
7.4.200.0060.00316.67
7.4.160.0090.00616.70
7.4.150.0070.01117.40
7.4.140.0110.00917.86
7.4.130.0090.01116.54
7.4.120.0130.00516.56
7.4.110.0030.01416.58
7.4.100.0070.01016.53
7.4.90.0120.00616.53
7.4.80.0060.01119.37
7.4.70.0070.01016.49
7.4.60.0070.01116.63
7.4.50.0050.00316.69
7.4.40.0060.01116.53
7.4.30.0060.01016.57
7.4.00.0110.00615.03
7.3.330.0000.00513.37
7.3.320.0050.00013.34
7.3.310.0020.00516.19
7.3.300.0000.00716.38
7.3.290.0090.01216.32
7.3.280.0080.01216.34
7.3.270.0150.00317.40
7.3.260.0170.00716.48
7.3.250.0090.00816.44
7.3.240.0100.00716.63
7.3.230.0030.01616.57
7.3.210.0080.00816.41
7.3.200.0030.01519.39
7.3.190.0060.01016.39
7.3.180.0180.00016.46
7.3.170.0080.00816.39
7.3.160.0120.01416.58
7.3.120.0080.01114.89
7.3.110.0070.01114.95
7.3.100.0030.00714.84
7.3.90.0030.01514.84
7.3.80.0030.01214.93
7.3.70.0060.00315.00
7.3.60.0090.00414.69
7.3.50.0090.00614.72
7.3.40.0030.01014.91
7.3.30.0000.01514.87
7.3.20.0060.00316.71
7.3.10.0090.00616.68
7.3.00.0030.01316.58
7.2.330.0040.01416.49
7.2.320.0130.00316.72
7.2.310.0180.00616.63
7.2.300.0040.01216.71
7.2.290.0080.00916.32
7.2.250.0040.01515.22
7.2.240.0100.01014.72
7.2.230.0030.01215.38
7.2.220.0090.00315.02
7.2.210.0030.01314.92
7.2.200.0080.00815.18
7.2.190.0000.01114.85
7.2.180.0100.00415.05
7.2.170.0070.01115.06
7.2.60.0070.01016.90
7.2.00.0100.00319.49
7.1.330.0060.00915.75
7.1.320.0040.00815.80
7.1.310.0050.00515.91
7.1.300.0030.01015.53
7.1.290.0000.01515.68
7.1.280.0070.00715.54
7.1.270.0040.01115.42
7.1.260.0000.00915.35
7.1.200.0000.01215.78
7.1.100.0360.01018.04
7.1.70.0000.00817.07
7.1.60.0030.00717.02
7.1.50.0000.01416.80
7.1.40.0000.01416.52
7.1.30.0040.00816.68
7.1.20.0040.00716.70
7.1.10.0050.00516.49
7.1.00.0000.00716.55
7.0.200.0030.01016.91
7.0.190.0070.00716.85
7.0.180.0040.00416.23
7.0.170.0000.00716.26
7.0.160.0000.00716.24
7.0.150.0000.00816.24
7.0.140.0000.01116.25
7.0.130.0050.00516.63
7.0.120.0040.00716.79
7.0.110.0030.00616.33
7.0.100.0040.00716.32
7.0.90.0040.00716.30
7.0.80.0000.01716.24
7.0.70.0130.00016.44
7.0.60.0000.00716.15
7.0.50.0070.00016.55
7.0.40.0070.01015.39
7.0.30.0030.01015.39
7.0.20.0000.01015.39
7.0.10.0030.00715.39
7.0.00.0000.01015.39
5.6.300.0070.03920.68
5.6.290.0030.04920.81
5.6.280.0060.05820.87
5.6.270.0060.04221.08
5.6.260.0000.04520.85
5.6.250.0070.03720.81
5.6.240.0230.03420.99
5.6.230.0000.08020.89
5.6.220.0000.05720.80
5.6.210.0130.03320.63
5.6.200.0100.04120.83
5.6.190.0000.04320.96
5.6.180.0100.03620.99
5.6.170.0030.03920.97
5.6.160.0100.03920.86
5.6.150.0060.03920.82
5.6.140.0030.04521.04
5.6.130.0030.04820.93
5.6.120.0000.05120.73
5.6.110.0070.03620.76
5.6.100.0130.03620.98
5.6.90.0000.05320.80
5.6.80.0000.04620.22
5.6.70.0030.04020.33
5.6.60.0030.04220.22
5.6.50.0000.04320.13
5.6.40.0000.04020.19
5.6.30.0030.03920.19
5.6.20.0030.04420.19
5.6.10.0030.04420.18
5.6.00.0040.03920.16
5.5.380.0070.06317.68
5.5.370.0030.05217.53
5.5.360.0030.04617.64
5.5.350.0060.03517.43
5.5.340.0030.04018.10
5.5.330.0030.05417.87
5.5.320.0070.04918.00
5.5.310.0030.04218.11
5.5.300.0000.04418.00
5.5.290.0070.05718.01
5.5.280.0030.04118.09
5.5.270.0000.05118.00
5.5.260.0000.05017.83
5.5.250.0070.04017.85
5.5.240.0030.03717.39
5.5.230.0000.05017.44
5.5.220.0030.04117.47
5.5.210.0000.04617.47
5.5.200.0030.03617.38
5.5.190.0230.03717.49
5.5.180.0000.05617.09
5.5.160.0070.03317.36
5.5.150.0060.03517.39
5.5.140.0070.03617.09
5.5.130.0030.04117.44
5.5.120.0030.05617.05
5.5.110.0060.03517.20
5.5.100.0070.06517.29
5.5.90.0000.05317.29
5.5.80.0070.04417.30
5.5.70.0070.03917.37
5.5.60.0000.03917.32
5.5.50.0040.03617.34
5.5.40.0000.04717.10
5.5.30.0000.04917.07
5.5.20.0320.02617.33
5.5.10.0000.04617.25
5.5.00.0030.05717.29
5.4.450.0030.05919.44
5.4.440.0000.04319.49
5.4.430.0070.08419.43
5.4.420.0100.08219.29
5.4.410.0100.04119.26
5.4.400.0000.04919.04
5.4.390.0070.05018.98
5.4.380.0210.03419.21
5.4.370.0070.04219.16
5.4.360.0000.04919.11
5.4.350.0030.05019.20
5.4.340.0000.05319.23
5.4.320.0030.03819.04
5.4.310.0000.04519.06
5.4.300.0070.03319.13
5.4.290.0030.05019.20
5.4.280.0040.04219.07
5.4.270.0000.04319.08
5.4.260.0000.04519.20
5.4.250.0030.04118.97
5.4.240.0030.03718.88
5.4.230.0000.04919.02
5.4.220.0000.04718.91
5.4.210.0070.03619.13
5.4.200.0000.05218.96
5.4.190.0070.03919.03
5.4.180.0000.04119.15
5.4.170.0030.04219.04
5.4.160.0060.03518.90
5.4.150.0070.06318.87
5.4.140.0030.04716.50
5.4.130.0000.04116.72
5.4.120.0100.02616.69
5.4.110.0030.03816.70
5.4.100.0000.03816.46
5.4.90.0030.03316.75
5.4.80.0030.03316.52
5.4.70.0000.03816.71
5.4.60.0000.04916.72
5.4.50.0000.05916.45
5.4.40.0070.05616.51
5.4.30.0030.03616.56
5.4.20.0060.03916.70
5.4.10.0070.03316.62
5.4.00.0070.03416.12
5.3.290.0030.04215.39
5.3.280.0000.03915.39
5.3.270.0000.03815.39
5.3.260.0000.04015.39
5.3.250.0030.03615.39
5.3.240.0000.05115.39
5.3.230.0000.03915.39
5.3.220.0070.03315.39
5.3.210.0000.05115.39
5.3.200.0070.03315.39
5.3.190.0110.03915.39
5.3.180.0000.03915.39
5.3.170.0070.03815.39
5.3.160.0000.06815.39
5.3.150.0030.04815.39
5.3.140.0140.04115.39
5.3.130.0030.03715.39
5.3.120.0070.06415.39
5.3.110.0030.04015.39
5.3.100.0030.03715.39
5.3.90.0030.03515.39
5.3.80.0000.04015.39
5.3.70.0070.03315.39
5.3.60.0030.03715.39
5.3.50.0000.04115.39
5.3.40.0000.04115.39
5.3.30.0040.03515.39
5.3.20.0000.03715.39
5.3.10.0170.04715.39
5.3.00.0000.03715.39
5.2.170.0030.04915.39
5.2.160.0000.03215.39
5.2.150.0070.02715.39
5.2.140.0030.03315.39
5.2.130.0000.03115.39
5.2.120.0000.03115.39
5.2.110.0070.02315.39
5.2.100.0030.03015.39
5.2.90.0000.03115.39
5.2.80.0060.05715.39
5.2.70.0120.02515.39
5.2.60.0220.02815.39
5.2.50.0030.03215.39
5.2.40.0000.03715.39
5.2.30.0090.02515.39
5.2.20.0030.03415.39
5.2.10.0060.02915.39
5.2.00.0030.02815.39
5.1.60.0030.02315.39
5.1.50.0000.02915.39
5.1.40.0030.02915.39
5.1.30.0000.02915.39
5.1.20.0030.03115.39
5.1.10.0060.02315.39
5.1.00.0000.03415.39
5.0.50.0030.02315.39
5.0.40.0070.01615.39
5.0.30.0060.02915.39
5.0.20.0060.01815.39
5.0.10.0060.01415.39
5.0.00.0030.03615.39
4.4.90.0000.01915.39
4.4.80.0060.01115.39
4.4.70.0000.01615.39
4.4.60.0000.01615.39
4.4.50.0000.02115.39
4.4.40.0000.03115.39
4.4.30.0090.00915.39
4.4.20.0110.01415.39
4.4.10.0130.01715.39
4.4.00.0040.02515.39
4.3.110.0000.02215.39
4.3.100.0030.01415.39
4.3.90.0030.01815.39
4.3.80.0030.02315.39
4.3.70.0000.01615.39
4.3.60.0000.01915.39
4.3.50.0040.01415.39
4.3.40.0030.02515.39
4.3.30.0030.01615.39
4.3.20.0100.01915.39
4.3.10.0030.01515.39
4.3.00.0000.01615.39

preferences:
59.35 ms | 400 KiB | 5 Q