3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { echo 'baz'; } } class Ex { public $a; public function __construct() { $this->a = 'Foo'; } public function doIt() { ${$this->a}::bar(); } } $a = new Ex(); $a->doIt();

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.0110.00418.50
8.3.50.0080.00821.99
8.3.40.0070.00718.69
8.3.30.0070.00719.04
8.3.20.0000.00820.34
8.3.10.0060.00321.92
8.3.00.0080.00022.46
8.2.180.0120.00616.50
8.2.170.0040.01122.96
8.2.160.0100.00319.34
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0060.00322.13
8.2.100.0080.00319.21
8.2.90.0040.00419.17
8.2.80.0070.00018.05
8.2.70.0080.00017.75
8.2.60.0050.00317.93
8.2.50.0030.00718.07
8.2.40.0040.00418.02
8.2.30.0040.00417.93
8.2.20.0000.00717.80
8.2.10.0000.00717.74
8.2.00.0040.00817.64
8.1.280.0090.00625.92
8.1.270.0040.00418.63
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.97
8.1.230.0040.00819.16
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00717.35
8.1.190.0030.00517.41
8.1.180.0000.00718.70
8.1.170.0040.00418.68
8.1.160.0000.00722.13
8.1.150.0000.00818.57
8.1.140.0040.00417.35
8.1.130.0000.00717.89
8.1.120.0040.00417.43
8.1.110.0040.00417.49
8.1.100.0030.00517.33
8.1.90.0000.00717.35
8.1.80.0030.00317.49
8.1.70.0000.00717.47
8.1.60.0030.00617.50
8.1.50.0070.00017.49
8.1.40.0030.00517.48
8.1.30.0000.00817.57
8.1.20.0040.00417.63
8.1.10.0060.00317.59
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0030.00318.45
8.0.270.0000.00817.27
8.0.260.0070.00016.86
8.0.250.0030.00317.06
8.0.240.0080.00017.07
8.0.230.0000.00716.98
8.0.220.0070.00016.94
8.0.210.0030.00316.96
8.0.200.0000.00817.02
8.0.190.0060.00316.94
8.0.180.0000.00716.96
8.0.170.0040.00416.90
8.0.160.0040.00416.89
8.0.150.0000.00716.84
8.0.140.0060.00316.91
8.0.130.0030.00313.42
8.0.120.0000.00716.89
8.0.110.0000.00716.88
8.0.100.0040.00416.82
8.0.90.0060.00316.89
8.0.80.0060.00916.98
8.0.70.0050.00316.97
8.0.60.0000.00716.73
8.0.50.0040.00416.82
8.0.30.0130.00516.97
8.0.20.0150.00917.40
8.0.10.0000.00716.89
8.0.00.0090.01216.73
7.4.330.0050.00015.00
7.4.320.0000.00616.63
7.4.300.0000.00716.59
7.4.290.0000.00716.52
7.4.280.0070.00316.50
7.4.270.0040.00416.52
7.4.260.0030.00316.44
7.4.250.0000.00716.55
7.4.240.0050.00316.47
7.4.230.0030.00316.41
7.4.220.0040.01616.54
7.4.210.0050.01116.48
7.4.200.0030.00316.25
7.4.190.0070.00016.61
7.4.160.0080.00816.64
7.4.150.0090.00917.40
7.4.140.0060.01117.86
7.4.130.0060.01116.55
7.4.120.0100.00616.48
7.4.110.0070.01016.60
7.4.100.0070.01016.60
7.4.90.0130.00316.36
7.4.80.0100.00719.39
7.4.70.0090.01216.28
7.4.60.0120.01216.60
7.4.50.0000.00816.30
7.4.40.0070.00722.77
7.4.30.0060.01016.55
7.4.00.0000.01314.93
7.3.330.0030.00313.35
7.3.320.0060.00013.14
7.3.310.0030.00516.38
7.3.300.0040.00416.42
7.3.290.0000.01716.38
7.3.280.0110.00516.34
7.3.270.0170.00017.40
7.3.260.0040.01516.42
7.3.250.0110.00616.48
7.3.240.0100.00716.46
7.3.230.0070.01016.47
7.3.210.0120.00416.28
7.3.200.0120.00619.39
7.3.190.0100.00716.39
7.3.180.0130.00316.44
7.3.170.0060.00916.38
7.3.160.0100.01016.62
7.3.120.0030.00614.73
7.2.330.0070.01016.52
7.2.320.0060.01216.67
7.2.310.0060.00916.57
7.2.300.0150.00616.35
7.2.290.0170.00016.63
7.2.60.0140.00316.71
7.1.200.0030.01015.65
7.1.100.0160.00418.24
7.1.70.0000.00816.96
7.1.60.0120.01219.82
7.1.50.0070.00716.98
7.1.00.0070.05322.35
7.0.200.0030.00616.73
7.0.140.0030.07321.95
7.0.60.0100.06720.02
7.0.50.0100.07717.86
7.0.40.0130.08020.30
7.0.30.0300.06320.34
7.0.20.0430.07020.22
7.0.10.0230.05320.30
7.0.00.0070.08320.32
5.6.280.0030.07320.91
5.6.210.0130.07720.65
5.6.200.0000.04718.21
5.6.190.0130.08020.58
5.6.180.5170.04320.55
5.6.170.0200.07720.47
5.6.160.0100.08020.52
5.6.150.0130.04018.18
5.6.140.0000.04718.18
5.6.130.0070.04018.17
5.6.120.0100.08020.98
5.6.110.0170.07020.98
5.6.100.0130.08021.00
5.6.90.0000.05721.08
5.6.80.0030.08320.38
5.6.70.0400.05720.37
5.5.350.0130.08020.54
5.5.340.0130.03017.97
5.5.330.0030.09020.41
5.5.320.0230.07720.32
5.5.310.0400.07320.41
5.5.300.0170.07018.04
5.5.290.0030.09017.97
5.5.280.0070.05720.63
5.5.270.0030.09020.67
5.5.260.0000.08720.88
5.5.250.0070.04020.59
5.5.240.0130.06720.13
5.4.450.0830.04719.39
5.4.440.0470.06719.45
5.4.430.0600.07019.16
5.4.420.0870.05319.18
5.4.410.0900.06319.32
5.4.400.0430.05018.76
5.4.390.0330.05318.55
5.4.380.0370.06318.79
5.4.370.0100.05318.70
5.4.360.0100.05318.56
5.4.350.0160.07112.03
5.4.340.0120.04912.02
5.4.320.0100.03712.50
5.4.310.0080.03912.50
5.4.300.0040.03812.50
5.4.290.0080.05712.50
5.4.280.0050.03512.40
5.4.270.0050.04512.40
5.4.260.0080.05112.40
5.4.250.0000.06018.98
5.4.240.0130.06019.00
5.4.230.0100.05018.95
5.4.220.0130.05018.98
5.4.210.0070.05318.95
5.4.200.0100.06019.08
5.4.190.0100.07318.76
5.4.180.0070.05718.79
5.4.170.0130.05018.76
5.4.160.0000.05718.63
5.4.150.0000.06018.96
5.4.140.0100.04716.47
5.4.130.0070.04716.47
5.4.120.0070.05016.43
5.4.110.0030.05316.53
5.4.100.0070.04716.45
5.4.90.0100.04716.37
5.4.80.0100.06016.37
5.4.70.0030.05016.44
5.4.60.0030.06316.58
5.4.50.0170.03716.48
5.4.40.0230.03316.43
5.4.30.0000.05316.38
5.4.20.0200.04016.37
5.4.10.0030.07316.50
5.4.00.0030.07315.86
5.3.290.0070.04912.80
5.3.280.0100.04314.50
5.3.270.0200.03714.68
5.3.260.0100.05714.68
5.3.250.0000.07014.69
5.3.240.0130.04314.63
5.3.230.0030.07714.43
5.3.220.0130.04714.66
5.3.210.0100.05714.63
5.3.200.0100.07014.65
5.3.190.0030.05314.56
5.3.180.0070.06314.79
5.3.170.0070.05014.70
5.3.160.0030.05014.78
5.3.150.0130.05714.65
5.3.140.0030.05014.54
5.3.130.0170.04314.59
5.3.120.0000.08314.63
5.3.110.0170.04314.55
5.3.100.0000.05314.20
5.3.90.0170.04014.11
5.3.80.0070.06714.11
5.3.70.0070.05014.04
5.3.60.0030.06313.98
5.3.50.0030.05013.96
5.3.40.0070.05313.78
5.3.30.0100.06013.99
5.3.20.0130.06013.72
5.3.10.0130.04713.71
5.3.00.0170.05013.61
5.2.170.0030.04311.24
5.2.160.0070.05311.15
5.2.150.0070.04311.12
5.2.140.0200.03311.21
5.2.130.0070.04011.17
5.2.120.0130.05011.33
5.2.110.0100.04011.18
5.2.100.0130.04311.28
5.2.90.0100.04311.09
5.2.80.0100.05311.08
5.2.70.0100.05011.16
5.2.60.0130.04311.14
5.2.50.0100.03710.97
5.2.40.0130.03011.18
5.2.30.0070.03710.96
5.2.20.0030.04311.04
5.2.10.0030.04710.70
5.2.00.0030.05310.70
5.1.60.0030.03310.16
5.1.50.0000.0379.93
5.1.40.0000.03710.05
5.1.30.0030.03710.32
5.1.20.0030.05310.19
5.1.10.0030.03710.32
5.1.00.0000.03710.31
5.0.50.0070.0238.64
5.0.40.0030.0278.36
5.0.30.0000.0438.19
5.0.20.0000.0308.23
5.0.10.0000.0308.13
5.0.00.0030.0508.21
4.4.90.0070.0277.06
4.4.80.0030.0207.06
4.4.70.0000.0237.06
4.4.60.0070.0207.06
4.4.50.0030.0207.06
4.4.40.0000.0337.06
4.4.30.0000.0307.06
4.4.20.0030.0207.06
4.4.10.0030.0277.06
4.4.00.0000.0337.06
4.3.110.0030.0207.06
4.3.100.0000.0237.06
4.3.90.0100.0137.06
4.3.80.0070.0377.06
4.3.70.0030.0207.06
4.3.60.0000.0307.06
4.3.50.0000.0237.06
4.3.40.0070.0307.06
4.3.30.0000.0207.06
4.3.20.0000.0237.06
4.3.10.0030.0277.06
4.3.00.0070.0276.72

preferences:
43.95 ms | 401 KiB | 5 Q