3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { static $function; static function method() { ${self::$function}(); } } function callback() {} Example::$function = 'callback'; Example::method();

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.0130.00716.75
8.3.50.0110.01018.48
8.3.40.0040.01118.77
8.3.30.0140.00018.70
8.3.20.0040.00418.77
8.3.10.0070.00418.77
8.3.00.0000.00819.51
8.2.180.0070.01125.92
8.2.170.0120.00619.21
8.2.160.0100.00322.96
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00419.89
8.2.110.0060.00320.53
8.2.100.0060.00619.45
8.2.90.0060.00317.50
8.2.80.0000.00918.91
8.2.70.0030.00617.75
8.2.60.0000.00818.04
8.2.50.0030.00617.79
8.2.40.0030.00519.35
8.2.30.0040.00717.62
8.2.20.0000.01117.79
8.2.10.0040.00417.73
8.2.00.0000.00717.78
8.1.280.0120.00325.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00620.64
8.1.230.0080.00421.98
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0050.00317.00
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0070.00019.01
8.1.150.0000.00718.67
8.1.140.0030.00717.44
8.1.130.0000.00719.16
8.1.120.0000.00717.44
8.1.110.0000.00917.41
8.1.100.0040.00417.45
8.1.90.0030.00417.43
8.1.80.0030.00317.44
8.1.70.0070.00017.31
8.1.60.0020.00517.61
8.1.50.0040.00417.41
8.1.40.0050.00517.47
8.1.30.0000.00917.59
8.1.20.0050.00317.67
8.1.10.0060.00317.50
8.1.00.0030.00617.49
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.46
8.0.270.0030.00317.25
8.0.260.0030.00316.87
8.0.250.0040.00416.91
8.0.240.0070.00316.74
8.0.230.0000.00716.93
8.0.220.0060.00316.92
8.0.210.0050.00316.95
8.0.200.0060.00016.93
8.0.190.0040.00416.89
8.0.180.0040.00417.01
8.0.170.0030.00616.95
8.0.160.0040.00416.86
8.0.150.0040.00416.84
8.0.140.0000.00916.88
8.0.130.0060.00013.43
8.0.120.0050.00316.90
8.0.110.0000.00716.88
8.0.100.0040.00417.00
8.0.90.0050.00216.95
8.0.80.0110.00416.93
8.0.70.0080.00016.97
8.0.60.0070.00016.85
8.0.50.0040.00416.97
8.0.30.0080.00616.98
8.0.20.0110.00816.88
8.0.10.0000.00717.08
8.0.00.0090.01016.76
7.4.330.0020.00212.94
7.4.320.0000.00616.50
7.4.300.0060.00016.53
7.4.290.0060.00016.47
7.4.280.0030.00516.49
7.4.270.0000.00616.59
7.4.260.0060.00013.15
7.4.250.0030.00516.48
7.4.240.0000.00716.41
7.4.230.0000.00716.58
7.4.220.0090.01216.54
7.4.210.0110.00316.53
7.4.200.0070.00016.38
7.4.190.0050.00216.74
7.4.160.0060.00916.41
7.4.150.0100.01416.53
7.4.140.0070.01717.86
7.4.130.0110.00616.45
7.4.120.0150.01316.47
7.4.110.0140.00316.60
7.4.100.0030.01316.38
7.4.90.0130.01016.52
7.4.80.0100.00919.39
7.4.70.0120.00616.49
7.4.60.0060.00916.49
7.4.50.0000.00616.59
7.4.40.0090.00616.65
7.4.30.0030.01316.34
7.4.00.0040.01114.98
7.3.330.0060.00013.36
7.3.320.0020.00313.27
7.3.310.0050.00316.23
7.3.300.0030.00316.38
7.3.290.0100.00816.30
7.3.280.0070.00716.29
7.3.270.0150.00916.36
7.3.260.0090.00916.38
7.3.240.0160.00016.44
7.3.230.0160.00316.59
7.3.210.0120.01216.27
7.3.200.0100.01316.45
7.3.190.0110.00516.39
7.3.180.0130.01016.42
7.3.170.0100.01016.34
7.3.160.0150.00016.48
7.3.120.0090.00614.93
7.2.330.0060.01316.70
7.2.320.0060.01316.57
7.2.310.0110.01516.68
7.2.300.0110.00616.73
7.2.290.0100.00716.46
7.2.60.0090.00616.80
7.2.00.0040.00819.27
7.1.200.0030.01315.73
7.1.70.0100.00016.97
7.1.60.0000.01316.86
7.1.50.0070.01716.89
7.1.00.0000.04022.35
7.0.200.0000.01616.82
7.0.140.0000.07722.09
7.0.120.0000.06321.96
7.0.60.0100.08721.57
7.0.50.0030.07017.87
7.0.40.0100.04020.25
7.0.30.0300.03720.36
7.0.20.0230.03720.21
7.0.10.0000.08320.15
7.0.00.0100.05720.20
5.6.280.0000.07721.02
5.6.210.0100.08320.63
5.6.200.0030.04018.19
5.6.190.0000.05020.63
5.6.180.2500.04720.48
5.6.170.0230.04020.52
5.6.160.0130.03320.50
5.6.150.0070.08018.11
5.6.140.0100.03318.16
5.6.130.0000.04718.28
5.6.120.0000.04720.90
5.6.110.0070.03720.98
5.6.100.0070.08021.10
5.6.90.0170.08320.98
5.6.80.0100.07720.38
5.5.350.0170.04020.42
5.5.340.0070.08018.03
5.5.330.0100.07320.57
5.5.320.0270.07320.25
5.5.310.0170.04020.29
5.5.300.0130.07317.99
5.5.290.0170.04717.97
5.5.280.0100.08020.77
5.5.270.0070.07320.73
5.5.260.0170.07720.88
5.5.250.0070.08720.69
5.5.240.0370.06720.16
5.4.450.0000.04019.19
5.4.440.0070.03719.25
5.4.430.0000.04019.20
5.4.420.0000.06319.19
5.4.410.0130.07019.05
5.4.400.0030.04019.16
5.4.390.0070.05019.12
5.4.380.0070.06319.21
5.4.370.0030.04319.14
5.4.360.0070.03719.24
5.4.350.0030.04319.00
5.4.340.0030.04718.88
5.4.320.0100.07018.86
5.4.310.0070.03319.24
5.4.300.0000.04719.14
5.4.290.0070.07018.84
5.4.280.0030.06719.16
5.4.270.0130.07019.19
5.4.260.0100.05718.97
5.4.250.0030.07019.07
5.4.240.0070.06718.87
5.4.230.0130.05719.24
5.4.220.0030.06718.84
5.4.210.0130.07019.11
5.4.200.0030.06019.14
5.4.190.0030.04019.14
5.4.180.0130.04019.21
5.4.170.0130.07019.23
5.4.160.0030.07719.19
5.4.150.0030.08319.22
5.4.140.0030.08016.31
5.4.130.0030.08016.36
5.4.120.0100.06316.30
5.4.110.0100.06716.58
5.4.100.0000.08016.53
5.4.90.0030.05016.46
5.4.80.0130.02716.45
5.4.70.0000.04316.44
5.4.60.0030.05016.40
5.4.50.0100.04016.64
5.4.40.0070.04316.40
5.4.30.0000.07016.38
5.4.20.0170.05716.46
5.4.10.0100.07316.36
5.4.00.0200.04315.79
5.3.290.0070.03314.80
5.3.280.0030.05014.48
5.3.270.0030.08014.61
5.3.260.0070.07314.66
5.3.250.0100.04014.60
5.3.240.0100.07014.76
5.3.230.0070.07714.63
5.3.220.0070.08014.64
5.3.210.0030.06714.63
5.3.200.0070.07314.48
5.3.190.0000.04314.62
5.3.180.0030.04014.62
5.3.170.0030.03714.48
5.3.160.0100.07014.59
5.3.150.0130.04714.57
5.3.140.0030.06014.64
5.3.130.0070.07714.57
5.3.120.0100.06014.55
5.3.110.0030.07014.57
5.3.100.0100.07014.06
5.3.90.0100.07014.05
5.3.80.0100.06314.07
5.3.70.0070.05014.07
5.3.60.0070.04014.01
5.3.50.0070.07313.99
5.3.40.0070.07314.01
5.3.30.0130.04713.83
5.3.20.0130.06313.84
5.3.10.0030.04013.57
5.3.00.0000.04013.66
5.2.170.0100.03711.19
5.2.160.0030.03311.16
5.2.150.0000.04711.04
5.2.140.0030.06711.18
5.2.130.0070.05711.11
5.2.120.0030.05010.99
5.2.110.0030.06011.07
5.2.100.0030.05711.06
5.2.90.0000.04711.11
5.2.80.0000.03011.10
5.2.70.0000.06311.02
5.2.60.0070.03711.05
5.2.50.0030.06710.99
5.2.40.0000.06710.92
5.2.30.0130.05710.88
5.2.20.0070.03310.96
5.2.10.0130.03710.93
5.2.00.0070.05010.63
5.1.60.0030.04310.15
5.1.50.0070.03710.00
5.1.40.0070.0239.89
5.1.30.0070.04310.33
5.1.20.0030.03710.36
5.1.10.0070.03010.03
5.1.00.0030.06010.11
5.0.50.0030.0508.54
5.0.40.0030.0238.48
5.0.30.0070.0538.37
5.0.20.0070.0338.27
5.0.10.0000.0278.15
5.0.00.0000.0678.18
4.4.90.0000.0337.96
4.4.80.0000.0337.96
4.4.70.0070.0337.96
4.4.60.0030.0377.96
4.4.50.0000.0307.96
4.4.40.0000.0277.96
4.4.30.0000.0237.96
4.4.20.0070.0337.96
4.4.10.0100.0277.96
4.4.00.0030.0307.96
4.3.110.0030.0337.96
4.3.100.0030.0407.96
4.3.90.0070.0307.96
4.3.80.0000.0377.96
4.3.70.0000.0377.96
4.3.60.0030.0337.96
4.3.50.0070.0277.96
4.3.40.0030.0537.96
4.3.30.0000.0337.96
4.3.20.0100.0137.96
4.3.10.0030.0337.96
4.3.00.0000.0307.96

preferences:
43.84 ms | 401 KiB | 5 Q