3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public static $var = 'yay!'; public $childClass; public function __construct() { $this->childClass = new ChildClass(); } } class ChildClass { public static $var = 'yay?'; } $obj = new MyClass(); echo $obj::$var; // works echo $obj->childClass::$var; // syntax error ?>

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.0030.01316.50
8.3.50.0150.00618.20
8.3.40.0090.00618.51
8.3.30.0060.00918.67
8.3.20.0080.00019.16
8.3.10.0050.00321.73
8.3.00.0000.00720.67
8.2.180.0140.00716.75
8.2.170.0040.01122.96
8.2.160.0100.00321.02
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00020.84
8.2.110.0000.01021.04
8.2.100.0070.00417.85
8.2.90.0000.00718.34
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0060.00317.93
8.2.50.0030.00518.10
8.2.40.0000.00820.23
8.2.30.0040.00419.18
8.2.20.0040.00417.74
8.2.10.0000.00717.99
8.2.00.0000.00717.87
8.1.280.0090.00625.92
8.1.270.0050.00323.96
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0070.00424.02
8.1.230.0130.00220.89
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0000.00818.40
8.1.160.0040.00422.14
8.1.150.0000.00718.76
8.1.140.0050.00219.45
8.1.130.0030.00317.51
8.1.120.0030.00517.37
8.1.110.0070.00317.35
8.1.100.0000.00817.38
8.1.90.0080.00017.31
8.1.80.0000.00717.42
8.1.70.0000.00817.42
8.1.60.0030.00517.58
8.1.50.0000.00917.50
8.1.40.0040.00717.51
8.1.30.0000.00817.61
8.1.20.0000.00817.71
8.1.10.0000.00717.55
8.1.00.0040.00417.52
8.0.300.0050.00320.10
8.0.290.0040.00416.75
8.0.280.0040.00418.39
8.0.270.0000.00817.26
8.0.260.0000.00817.14
8.0.250.0000.00616.82
8.0.240.0000.00616.96
8.0.230.0030.00316.87
8.0.220.0030.00316.82
8.0.210.0030.00316.87
8.0.200.0000.00616.88
8.0.190.0040.00416.88
8.0.180.0040.00416.86
8.0.170.0020.00516.75
8.0.160.0040.00416.95
8.0.150.0000.00716.68
8.0.140.0100.00016.74
8.0.130.0000.00513.20
8.0.120.0030.00516.68
8.0.110.0060.00316.82
8.0.100.0040.00416.64
8.0.90.0030.00316.84
8.0.80.0040.01316.85
8.0.70.0050.00316.73
8.0.60.0000.00716.82
8.0.50.0040.00416.89
8.0.30.0060.01517.09
8.0.20.0110.00917.40
8.0.10.0040.00417.04
8.0.00.0110.00516.54
7.4.330.0030.00315.08
7.4.320.0000.00616.45
7.4.300.0000.00716.64
7.4.290.0040.00416.51
7.4.280.0080.00316.49
7.4.270.0000.00616.50
7.4.260.0000.00716.46
7.4.250.0000.00716.45
7.4.240.0070.00016.43
7.4.230.0030.00316.34
7.4.220.0110.01716.69
7.4.210.0090.01216.71
7.4.200.0000.00716.62
7.4.160.0050.01116.40
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0110.00616.62
7.4.120.0120.00516.36
7.4.110.0070.01016.50
7.4.100.0000.01916.55
7.4.90.0120.00816.48
7.4.80.0100.00719.39
7.4.70.0130.00416.43
7.4.60.0100.00716.29
7.4.50.0100.00716.52
7.4.40.0080.01116.56
7.4.30.0070.01016.51
7.4.00.0070.01015.02
7.3.330.0000.00613.31
7.3.320.0020.00213.22
7.3.310.0040.00416.16
7.3.300.0030.00316.29
7.3.290.0080.00816.34
7.3.280.0080.00916.34
7.3.270.0080.00917.40
7.3.260.0120.00516.33
7.3.250.0080.01016.34
7.3.240.0090.00916.48
7.3.230.0120.00816.39
7.3.210.0100.01016.37
7.3.200.0130.00316.54
7.3.190.0100.00716.25
7.3.180.0310.00316.48
7.3.170.0090.00916.47
7.3.160.0150.00616.29
7.3.120.0040.01514.45
7.3.110.0110.00714.71
7.3.100.0030.01515.11
7.3.90.0090.00314.67
7.3.80.0030.01214.95
7.3.70.0070.00314.87
7.3.60.0070.00714.86
7.3.50.0040.00814.93
7.3.40.0040.00414.99
7.3.30.0030.00914.89
7.3.20.0090.00616.74
7.3.10.0040.00716.58
7.3.00.0040.01116.39
7.2.330.0080.00916.84
7.2.320.0100.01316.45
7.2.310.0090.00916.49
7.2.300.0130.00316.80
7.2.290.0090.00916.57
7.2.250.0070.01115.25
7.2.240.0040.01515.21
7.2.230.0030.01015.16
7.2.220.0030.01314.96
7.2.210.0140.00015.21
7.2.200.0000.01015.13
7.2.190.0060.00914.86
7.2.180.0100.00314.82
7.2.170.0040.01115.29
7.2.160.0060.00915.27
7.2.150.0060.01116.91
7.2.140.0070.01116.76
7.2.130.0070.00716.73
7.2.120.0100.00317.15
7.2.110.0100.00017.06
7.2.100.0100.00316.83
7.2.90.0100.00717.01
7.2.80.0040.00717.01
7.2.70.0040.00816.86
7.2.60.0100.00316.97
7.2.50.0070.00717.14
7.2.40.0070.00717.13
7.2.30.0030.00617.05
7.2.20.0100.00616.87
7.2.10.0090.00616.95
7.2.00.0030.01118.28
7.1.330.0130.00415.82
7.1.320.0110.00715.56
7.1.310.0060.01015.90
7.1.300.0110.00415.63
7.1.290.0090.00615.67
7.1.280.0040.01115.78
7.1.270.0090.00615.79
7.1.260.0090.00615.76
7.1.250.0070.00715.74
7.1.240.0000.01215.80
7.1.230.0030.00615.79
7.1.220.0120.00015.64
7.1.210.0060.00615.73
7.1.200.0040.00915.76
7.1.190.0040.01115.80
7.1.180.0090.00615.70
7.1.170.0030.00615.69
7.1.160.0030.01015.74
7.1.150.0030.00915.94
7.1.140.0040.01115.54
7.1.130.0040.00815.77
7.1.120.0000.01415.79
7.1.110.0040.01215.80
7.1.100.0050.00716.91
7.1.90.0040.00815.75
7.1.80.0030.00915.64
7.1.70.0060.00616.37
7.1.60.0060.00717.75
7.1.50.0140.00216.45
7.1.40.0030.00615.55
7.1.30.0000.01316.01
7.1.20.0030.01015.78
7.1.10.0030.01415.73
7.1.00.0050.04219.19
7.0.330.0070.00415.21
7.0.320.0110.00415.47
7.0.310.0040.00715.44
7.0.300.0040.01115.33
7.0.290.0070.00715.45
7.0.280.0030.00915.50
7.0.270.0040.01115.45
7.0.260.0030.00515.25
7.0.250.0070.00715.46
7.0.240.0080.00315.33
7.0.230.0000.01515.17
7.0.220.0060.00915.43
7.0.210.0080.00815.57
7.0.200.0230.00615.15
7.0.190.0000.01515.45
7.0.180.0030.00615.25
7.0.170.0000.01415.58
7.0.160.0000.01015.50
7.0.150.0060.01015.50
7.0.140.0040.00715.31
7.0.130.0070.00715.30
7.0.120.0040.00415.32
7.0.110.0040.00415.56
7.0.100.0180.02417.72
7.0.90.0130.02717.65
7.0.80.0220.03717.79
7.0.70.0070.03317.82
7.0.60.0220.03717.72
7.0.50.0270.03417.92
7.0.40.0170.02416.93
7.0.30.0370.03216.95
7.0.20.0350.03516.95
7.0.10.0200.04316.79
7.0.00.0400.03816.89
5.6.400.0080.00014.31
5.6.390.0060.00614.16
5.6.380.0000.01514.08
5.6.370.0030.00514.44
5.6.360.0060.00813.80
5.6.350.0040.01113.88
5.6.340.0040.00814.04
5.6.330.0130.00014.21
5.6.320.0060.00914.01
5.6.310.0030.01013.81
5.6.300.0070.01014.20
5.6.290.0000.01514.27
5.6.280.0030.01014.08
5.6.270.0040.01114.07
5.6.260.0040.00814.33
5.6.250.0080.03417.39
5.6.240.0040.03517.37
5.6.230.0110.03317.38
5.6.220.0100.02917.53
5.6.210.0070.03317.42
5.6.200.0060.03717.55
5.6.190.0120.02817.63
5.6.180.0100.02817.69
5.6.170.0020.04617.67
5.6.160.0070.03517.61
5.6.150.0180.02417.56
5.6.140.0100.03217.63
5.6.130.0120.02917.57
5.6.120.0080.03317.59
5.6.110.0050.03817.61
5.6.100.0030.03717.59
5.6.90.0110.03017.60
5.6.80.0090.04117.18
5.6.70.0130.03317.22
5.6.60.0110.03117.26
5.6.50.0080.03317.19
5.6.40.0050.04217.31
5.6.30.0070.04017.25
5.6.20.0130.03717.22
5.6.10.0170.03317.22
5.6.00.0220.03217.15

preferences:
65.38 ms | 401 KiB | 5 Q