3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function hello() { echo "Hello !"; } } class Bar { public $apple = null; public function __construct() { $this->apple = new Foo(); } } $foo = new Bar(); $baz = $foo->apple; $baz::hello();

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.0060.01518.52
8.3.50.0140.00821.21
8.3.40.0070.01318.57
8.3.30.0060.00818.69
8.3.20.0000.00918.60
8.3.10.0070.00019.38
8.3.00.0080.00023.66
8.2.180.0110.00725.92
8.2.170.0070.01418.96
8.2.160.0130.00020.43
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00321.00
8.2.110.0100.00022.21
8.2.100.0060.00617.72
8.2.90.0000.00817.50
8.2.80.0030.00618.70
8.2.70.0090.00017.63
8.2.60.0090.00017.63
8.2.50.0060.00317.50
8.2.40.0070.00317.62
8.2.30.0040.00417.69
8.2.20.0000.00817.42
8.2.10.0000.00817.68
8.2.00.0060.00317.68
8.1.280.0100.00725.92
8.1.270.0100.00023.80
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.92
8.1.230.0080.00418.97
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0060.00617.13
8.1.180.0030.00518.10
8.1.170.0030.00517.62
8.1.160.0000.00720.59
8.1.150.0000.00718.49
8.1.140.0050.00317.31
8.1.130.0050.00217.84
8.1.120.0000.00817.48
8.1.110.0030.00517.37
8.1.100.0000.00717.32
8.1.90.0040.00417.29
8.1.80.0040.00417.40
8.1.70.0000.00717.37
8.1.60.0040.00417.59
8.1.50.0050.00217.47
8.1.40.0080.00017.55
8.1.30.0050.00317.63
8.1.20.0050.00317.62
8.1.10.0040.00417.59
8.1.00.0080.00017.49
8.0.300.0060.00318.77
8.0.290.0040.00416.74
8.0.280.0000.00817.97
8.0.270.0000.00717.98
8.0.260.0080.00016.82
8.0.250.0000.00716.81
8.0.240.0040.00416.89
8.0.230.0030.00316.94
8.0.220.0040.00416.72
8.0.210.0000.00716.88
8.0.200.0000.00616.88
8.0.190.0070.00016.83
8.0.180.0040.00416.74
8.0.170.0000.00716.92
8.0.160.0030.00516.88
8.0.150.0080.00016.69
8.0.140.0030.00316.74
8.0.130.0050.00013.23
8.0.120.0000.00716.80
8.0.110.0000.00816.68
8.0.100.0060.00316.79
8.0.90.0000.00816.88
8.0.80.0100.00716.85
8.0.70.0000.00716.72
8.0.60.0000.00716.72
8.0.50.0030.00616.86
8.0.30.0080.01317.10
8.0.20.0140.00417.40
8.0.10.0070.00016.75
8.0.00.0090.01116.77
7.4.330.0030.00313.43
7.4.320.0030.00316.43
7.4.300.0040.00416.51
7.4.290.0000.00616.61
7.4.280.0080.00316.50
7.4.270.0000.00716.54
7.4.260.0030.00313.23
7.4.250.0000.00716.44
7.4.240.0030.00316.51
7.4.230.0030.00316.52
7.4.220.0100.01016.53
7.4.210.0080.00916.51
7.4.200.0000.00716.41
7.4.190.0000.00716.47
7.4.160.0080.00816.67
7.4.150.0070.01017.40
7.4.140.0070.01217.86
7.4.130.0080.00816.55
7.4.120.0150.00516.60
7.4.110.0060.01016.51
7.4.100.0060.01116.46
7.4.90.0060.01116.34
7.4.80.0130.01019.37
7.4.70.0120.00616.55
7.4.60.0080.00816.33
7.4.50.0000.00916.44
7.4.40.0090.00622.27
7.4.30.0040.01216.45
7.4.00.0080.00314.97
7.3.330.0000.00513.29
7.3.320.0000.00613.34
7.3.310.0000.00716.26
7.3.300.0030.00316.38
7.3.290.0030.01116.34
7.3.280.0070.00916.34
7.3.270.0110.00717.40
7.3.260.0070.01018.24
7.3.250.0100.00716.35
7.3.240.0060.00916.40
7.3.230.0130.00316.48
7.3.210.0090.00916.40
7.3.200.0100.00919.39
7.3.190.0090.01316.22
7.3.180.0140.00316.39
7.3.170.0140.00316.30
7.3.160.0090.00616.58
7.3.120.0040.01414.98
7.3.110.0040.01214.82
7.3.100.0130.00314.66
7.3.90.0070.00414.79
7.3.80.0030.00914.66
7.3.70.0000.01314.79
7.3.60.0030.01014.77
7.3.50.0080.00414.77
7.3.40.0060.00914.89
7.3.30.0000.01214.92
7.3.20.0000.01116.66
7.3.10.0000.01316.53
7.3.00.0000.00816.88
7.2.330.0030.01316.75
7.2.320.0070.01016.43
7.2.310.0160.00616.60
7.2.300.0130.00316.79
7.2.290.0070.01416.52
7.2.250.0030.01615.00
7.2.240.0040.01515.20
7.2.230.0000.01614.98
7.2.220.0040.00814.97
7.2.210.0060.00614.89
7.2.200.0130.00015.12
7.2.190.0130.00314.83
7.2.180.0030.01015.10
7.2.170.0040.01115.25
7.2.160.0000.01214.92
7.2.150.0050.00816.73
7.2.140.0070.00716.79
7.2.130.0000.00816.77
7.2.120.0050.00517.03
7.2.110.0040.01116.70
7.2.100.0030.00616.91
7.2.90.0120.00416.95
7.2.80.0070.00716.96
7.2.70.0040.00917.00
7.2.60.0090.00717.04
7.2.50.0060.00616.95
7.2.40.0030.00716.82
7.2.30.0080.00316.98
7.2.20.0120.00316.77
7.2.10.0070.01116.97
7.2.00.0050.00618.26
7.1.330.0030.00915.71
7.1.320.0060.00615.55
7.1.310.0100.00315.72
7.1.300.0000.00915.90
7.1.290.0080.00315.68
7.1.280.0060.00615.89
7.1.270.0080.00815.76
7.1.260.0000.01115.76
7.1.250.0000.01115.69
7.1.200.0030.01015.79
7.1.100.0000.01218.13
7.1.70.0040.01116.77
7.1.60.0100.01319.40
7.1.50.0090.01216.63
7.1.00.0070.03022.41
7.0.200.0030.00616.82
7.0.140.0030.07322.18
7.0.60.0370.06320.04
7.0.50.0030.07317.83
7.0.40.0030.04319.96
7.0.30.0130.04320.07
7.0.20.0200.06320.33
7.0.10.0070.09320.10
7.0.00.0100.04720.22
5.6.280.0100.07020.82
5.6.210.0000.04320.71
5.6.200.0130.06718.34
5.6.190.0070.04020.39
5.6.180.0170.04020.52
5.6.170.0270.05020.54
5.6.160.0070.05720.44
5.6.150.0100.07018.27
5.6.140.0070.08018.18
5.6.130.0030.05318.24
5.6.120.0030.08721.02
5.6.110.0100.08020.98
5.6.100.0100.07320.96
5.6.90.0100.03320.97
5.6.80.0100.06020.41
5.5.350.4130.04020.37
5.5.340.0070.03318.04
5.5.330.0030.09020.13
5.5.320.0330.05020.34
5.5.310.0330.06720.35
5.5.300.0070.08717.96
5.5.290.0100.07717.96
5.5.280.0070.07720.80
5.5.270.0070.07020.75
5.5.260.0130.07720.86
5.5.250.0100.07020.57
5.5.240.0230.07720.34
5.4.450.0030.08719.57
5.4.440.0030.04319.48
5.4.430.0100.07719.20
5.4.420.0030.04019.47
5.4.410.0070.07319.07
5.4.400.0030.07319.27
5.4.390.0070.04319.01
5.4.380.0030.04719.16
5.4.370.0070.04719.08
5.4.360.0070.05018.97
5.4.350.0130.07319.00
5.4.340.0070.07018.87
5.4.320.0100.04319.08
5.4.310.0030.05319.21
5.4.300.0070.07019.23
5.4.290.0100.06019.00
5.4.280.0000.05719.16
5.4.270.0200.06318.91
5.4.260.0030.04718.86
5.4.250.0030.07319.14
5.4.240.0130.07018.86
5.4.230.0070.06318.85
5.4.220.0100.04319.14
5.4.210.0100.07318.97
5.4.200.0030.05019.14
5.4.190.0030.08319.23
5.4.180.0030.08019.19
5.4.170.0130.05318.86
5.4.160.0100.04318.98
5.4.150.0000.06019.09
5.4.140.0000.05316.60
5.4.130.0130.03316.40
5.4.120.0100.03016.43
5.4.110.0030.05716.36
5.4.100.0130.07016.58
5.4.90.0070.04716.48
5.4.80.0030.04316.41
5.4.70.0000.05016.40
5.4.60.0100.06716.37
5.4.50.0070.07016.31
5.4.40.0070.04716.45
5.4.30.0070.07016.38
5.4.20.0070.07316.36
5.4.10.0070.06716.64
5.4.00.0100.06315.82
5.3.290.0170.06714.81
5.3.280.0030.06014.64
5.3.270.0030.06314.61
5.3.260.0070.03714.58
5.3.250.0070.07014.65
5.3.240.0070.03714.65
5.3.230.0070.04014.75
5.3.220.0070.03714.61
5.3.210.0130.06314.60
5.3.200.0000.05314.57
5.3.190.0000.08314.73
5.3.180.0030.08314.60
5.3.170.0100.07014.57
5.3.160.0130.06714.48
5.3.150.0100.07014.45
5.3.140.0130.06314.57
5.3.130.0100.04014.61
5.3.120.0000.04014.58
5.3.110.0070.03714.57
5.3.100.0070.04013.96
5.3.90.0030.05014.05
5.3.80.0070.07713.95
5.3.70.0070.06014.18
5.3.60.0130.07014.00
5.3.50.0070.03713.92
5.3.40.0070.04314.11
5.3.30.0030.04313.95
5.3.20.0030.08013.70
5.3.10.0070.03013.80
5.3.00.0070.06313.68
5.2.170.0070.05311.10
5.2.160.0000.07011.13
5.2.150.0030.06311.18
5.2.140.0030.05011.14
5.2.130.0030.06311.11
5.2.120.0000.03011.29
5.2.110.0030.03311.16
5.2.100.0030.04711.11
5.2.90.0030.03311.27
5.2.80.0030.06311.10
5.2.70.0030.04311.25
5.2.60.0030.04711.07
5.2.50.0000.03011.07
5.2.40.0100.04311.05
5.2.30.0030.03710.86
5.2.20.0100.02310.96
5.2.10.0030.06310.82
5.2.00.0100.05710.75
5.1.60.0070.0279.97
5.1.50.0030.0239.98
5.1.40.0070.0409.98
5.1.30.0070.03310.33
5.1.20.0070.04010.36
5.1.10.0070.05010.22
5.1.00.0030.05010.09
5.0.50.0100.0208.54
5.0.40.0000.0278.48
5.0.30.0000.0678.38
5.0.20.0000.0408.35
5.0.10.0030.0438.24
5.0.00.0030.0638.21
4.4.90.0000.0177.50
4.4.80.0030.0177.50
4.4.70.0000.0177.50
4.4.60.0000.0207.50
4.4.50.0000.0207.50
4.4.40.0070.0207.50
4.4.30.0030.0337.50
4.4.20.0000.0407.50
4.4.10.0030.0337.50
4.4.00.0170.0377.50
4.3.110.0030.0207.50
4.3.100.0000.0277.50
4.3.90.0000.0207.50
4.3.80.0030.0477.50
4.3.70.0030.0277.50
4.3.60.0000.0237.50
4.3.50.0000.0237.50
4.3.40.0030.0507.50
4.3.30.0000.0177.50
4.3.20.0000.0237.50
4.3.10.0000.0177.50
4.3.00.0070.0177.50

preferences:
57.03 ms | 401 KiB | 5 Q