3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $method = 'testing'; public function meh() { return $this->method::testing(); } public static function testing() { echo "Working\n"; } } $myClass = 'Test'; $myClass::testing();

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.0140.00018.30
8.3.50.0060.01321.99
8.3.40.0120.00318.67
8.3.30.0090.00619.04
8.3.20.0000.00820.15
8.3.10.0080.00022.08
8.3.00.0000.00822.57
8.2.180.0030.01716.75
8.2.170.0120.00322.96
8.2.160.0160.00318.82
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0090.00019.25
8.2.110.0060.00322.25
8.2.100.0040.00820.97
8.2.90.0000.00919.28
8.2.80.0050.00317.97
8.2.70.0070.00417.38
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0080.00018.03
8.2.30.0030.00618.01
8.2.20.0030.00617.46
8.2.10.0000.00717.48
8.2.00.0030.00617.59
8.1.280.0090.00925.92
8.1.270.0040.00422.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.88
8.1.230.0060.00618.74
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0050.00517.22
8.1.190.0000.00817.16
8.1.180.0040.00418.10
8.1.170.0030.00518.64
8.1.160.0040.00421.93
8.1.150.0000.00718.60
8.1.140.0040.00417.42
8.1.130.0000.00717.81
8.1.120.0050.00517.30
8.1.110.0050.00317.26
8.1.100.0000.00717.37
8.1.90.0000.01017.27
8.1.80.0030.00517.27
8.1.70.0070.00017.40
8.1.60.0110.00017.47
8.1.50.0000.00717.57
8.1.40.0040.00417.53
8.1.30.0050.00317.57
8.1.20.0040.00417.71
8.1.10.0060.00317.59
8.1.00.0040.00417.39
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0000.00818.36
8.0.270.0070.00017.11
8.0.260.0080.00016.83
8.0.250.0000.00716.79
8.0.240.0030.00616.76
8.0.230.0000.00716.90
8.0.220.0070.00016.86
8.0.210.0000.00716.82
8.0.200.0060.00016.89
8.0.190.0030.00316.77
8.0.180.0040.00416.91
8.0.170.0040.00416.73
8.0.160.0040.00416.76
8.0.150.0030.00416.89
8.0.140.0000.00716.64
8.0.130.0030.00313.26
8.0.120.0060.00316.69
8.0.110.0070.00016.77
8.0.100.0040.00416.75
8.0.90.0080.00016.65
8.0.80.0060.00916.88
8.0.70.0040.00416.86
8.0.60.0040.00416.86
8.0.50.0040.00416.86
8.0.30.0090.01216.78
8.0.20.0150.00517.40
8.0.10.0000.00716.94
8.0.00.0120.00516.54
7.4.330.0050.00015.00
7.4.320.0060.00016.45
7.4.300.0060.00016.61
7.4.290.0040.00416.55
7.4.280.0000.00716.51
7.4.270.0000.00716.44
7.4.260.0070.00316.49
7.4.250.0040.00416.57
7.4.240.0030.00316.54
7.4.230.0030.00316.50
7.4.220.0150.00316.52
7.4.210.0090.00716.52
7.4.200.0040.00416.66
7.4.190.0030.00316.74
7.4.160.0130.00916.45
7.4.150.0120.00617.40
7.4.140.0120.01117.86
7.4.130.0050.01216.41
7.4.120.0090.00816.44
7.4.110.0030.01316.45
7.4.100.0080.01216.25
7.4.90.0070.01016.38
7.4.80.0070.01019.39
7.4.70.0070.01416.44
7.4.60.0110.01116.55
7.4.50.0000.00716.27
7.4.40.0060.00922.77
7.4.30.0060.00916.62
7.4.00.0090.00614.70
7.3.330.0000.00613.32
7.3.320.0000.00513.32
7.3.310.0000.00716.26
7.3.300.0030.00316.30
7.3.290.0030.01316.31
7.3.280.0090.00916.24
7.3.270.0110.00617.40
7.3.260.0160.01016.27
7.3.250.0110.00616.38
7.3.240.0120.00816.15
7.3.230.0080.00816.48
7.3.210.0070.01116.29
7.3.200.0030.01319.39
7.3.190.0070.01016.31
7.3.180.0120.00316.45
7.3.170.0080.00816.27
7.3.160.0180.00316.35
7.3.120.0090.00614.83
7.2.330.0140.00316.57
7.2.320.0130.00616.65
7.2.310.0150.00316.27
7.2.300.0060.00916.64
7.2.290.0000.01816.67
7.2.60.0030.00616.96
7.1.200.0030.01015.46
7.1.100.0030.01018.06
7.1.70.0060.00317.01
7.1.60.0100.01419.82
7.1.50.0040.01916.99
7.1.00.0030.07722.51
7.0.200.0040.00416.55
7.0.140.0030.07322.08
7.0.60.0200.03719.92
7.0.50.0030.04017.83
7.0.40.0170.06720.09
7.0.30.0270.06320.23
7.0.20.0330.06020.09
7.0.10.0100.08720.33
7.0.00.0000.04320.05
5.6.280.0030.07020.87
5.6.210.0170.07320.70
5.6.200.0070.08318.25
5.6.190.0100.06020.48
5.6.180.0330.03720.63
5.6.170.0330.08020.39
5.6.160.0030.07020.55
5.6.150.0030.03718.28
5.6.140.0070.06718.28
5.6.130.0100.07318.14
5.6.120.0100.04020.97
5.6.110.0130.07721.09
5.6.100.0030.04321.11
5.6.90.0000.04320.93
5.6.80.0130.05320.40
5.5.350.0230.04320.44
5.5.340.0070.04317.92
5.5.330.0000.09720.40
5.5.320.0400.04320.25
5.5.310.0330.07020.33
5.5.300.0000.04317.95
5.5.290.0070.08717.97
5.5.280.0070.04020.98
5.5.270.0130.08020.80
5.5.260.0130.08020.96
5.5.250.0070.08020.56
5.5.240.0100.06720.16
5.4.450.0530.05019.48
5.4.440.0430.05719.34
5.4.430.0170.05019.32
5.4.420.0200.06319.51
5.4.410.0070.06019.41
5.4.400.1170.00018.76
5.4.390.1000.00018.52
5.4.380.0200.05318.54
5.4.370.0230.04718.69
5.4.360.0170.06018.74
5.4.350.0200.06318.83
5.4.340.0230.06018.52
5.4.320.0120.03112.52
5.4.310.0070.04212.51
5.4.300.0060.03612.52
5.4.290.0040.04012.51
5.4.280.0100.04412.41
5.4.270.0170.06019.00
5.4.260.0170.05318.95
5.4.250.0170.06319.02
5.4.240.0170.07018.95
5.4.230.0100.07018.77
5.4.220.0130.05018.77
5.4.210.0230.06018.67
5.4.200.0070.06318.97
5.4.190.0130.04718.98
5.4.180.0070.07018.75
5.4.170.0170.04318.76
5.4.160.0070.06318.95
5.4.150.0070.07318.93
5.4.140.0270.05016.55
5.4.130.0030.05316.60
5.4.120.0100.05716.53
5.4.110.0130.07016.39
5.4.100.0300.05016.50
5.4.90.0100.04716.42
5.4.80.0130.04316.55
5.4.70.0100.05316.40
5.4.60.0230.05316.42
5.4.50.0100.05716.47
5.4.40.0030.07316.44
5.4.30.0100.04316.46
5.4.20.0200.04316.54
5.4.10.0100.06716.36
5.4.00.0070.07015.84
5.3.290.0080.04412.80
5.3.280.0100.04714.77
5.3.270.0030.08014.68
5.3.260.0130.07014.82
5.3.250.0100.05314.69
5.3.240.0100.05014.68
5.3.230.0030.07314.59
5.3.220.0070.06314.73
5.3.210.0130.06714.57
5.3.200.0170.04714.39
5.3.190.0100.06714.55
5.3.180.0030.05314.72
5.3.170.0070.05014.74
5.3.160.0170.06014.65
5.3.150.0130.05014.65
5.3.140.0170.06714.54
5.3.130.0130.06714.38
5.3.120.0030.06314.57
5.3.110.0170.06714.54
5.3.100.0170.06014.21
5.3.90.0130.04314.00
5.3.80.0070.05014.10
5.3.70.0130.04314.09
5.3.60.0200.05714.08
5.3.50.0130.05714.03
5.3.40.0200.05713.94
5.3.30.0100.05313.99
5.3.20.0070.06713.52
5.3.10.0070.07013.73
5.3.00.0030.07013.56
5.2.170.0070.05711.32
5.2.160.0070.05711.11
5.2.150.0070.04311.14
5.2.140.0100.03711.09
5.2.130.0070.06011.18
5.2.120.0070.03711.14
5.2.110.0100.04011.17
5.2.100.0030.05311.25
5.2.90.0170.05011.10
5.2.80.0270.04311.04
5.2.70.0000.06011.16
5.2.60.0100.03710.95
5.2.50.0100.04011.00
5.2.40.0030.04711.00
5.2.30.0070.05011.05
5.2.20.0000.06011.03
5.2.10.0070.04710.81
5.2.00.0170.04310.62
5.1.60.0030.03710.05
5.1.50.0100.0409.97
5.1.40.0030.04710.07
5.1.30.0000.04010.18
5.1.20.0130.03010.45
5.1.10.0030.03710.16
5.1.00.0070.03310.10
5.0.50.0070.0278.78
5.0.40.0030.0378.64
5.0.30.0030.0508.42
5.0.20.0070.0238.34
5.0.10.0030.0278.09
5.0.00.0100.0338.21
4.4.90.0000.0306.38
4.4.80.0030.0206.38
4.4.70.0000.0276.38
4.4.60.0000.0336.38
4.4.50.0030.0206.38
4.4.40.0070.0336.38
4.4.30.0030.0206.38
4.4.20.0030.0306.38
4.4.10.0070.0176.38
4.4.00.0030.0336.38
4.3.110.0030.0206.38
4.3.100.0070.0176.38
4.3.90.0000.0206.38
4.3.80.0100.0306.38
4.3.70.0100.0176.38
4.3.60.0000.0236.38
4.3.50.0030.0206.38
4.3.40.0100.0336.38
4.3.30.0000.0236.38
4.3.20.0070.0206.38
4.3.10.0030.0206.38
4.3.00.0000.0237.12

preferences:
47.76 ms | 401 KiB | 5 Q