3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some { private static $thing = 'cosa'; public function __construct() { echo self::$thing; } } class Extension extends Some { public function __construct() { echo self::$thing; } } new \Extension();

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.0190.00316.75
8.3.50.0090.01216.35
8.3.40.0120.00618.67
8.3.30.0130.00318.54
8.3.20.0040.00420.07
8.3.10.0070.00021.52
8.3.00.0030.00623.42
8.2.180.0090.00616.63
8.2.170.0140.00322.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00317.84
8.2.120.0070.00026.35
8.2.110.0060.00320.37
8.2.100.0090.00317.79
8.2.90.0040.00417.95
8.2.80.0040.00418.04
8.2.70.0040.00417.63
8.2.60.0040.00418.05
8.2.50.0060.00318.07
8.2.40.0000.00822.21
8.2.30.0070.00019.35
8.2.20.0000.00717.59
8.2.10.0000.00717.91
8.2.00.0070.00018.02
8.1.280.0070.01025.92
8.1.270.0140.00723.88
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00322.06
8.1.230.0080.00320.97
8.1.220.0090.00017.74
8.1.210.0050.00520.37
8.1.200.0000.00917.23
8.1.190.0050.00317.11
8.1.180.0000.00818.10
8.1.170.0030.00518.65
8.1.160.0040.00420.50
8.1.150.0070.00018.78
8.1.140.0080.00019.35
8.1.130.0070.00017.61
8.1.120.0000.00717.40
8.1.110.0000.00717.20
8.1.100.0070.00017.20
8.1.90.0000.01017.32
8.1.80.0080.00017.28
8.1.70.0030.00317.33
8.1.60.0030.00517.54
8.1.50.0030.00517.35
8.1.40.0000.00817.50
8.1.30.0050.00317.47
8.1.20.0040.00417.46
8.1.10.0030.00617.42
8.1.00.0000.00717.39
8.0.300.0040.00420.13
8.0.290.0050.00216.63
8.0.280.0000.00718.38
8.0.270.0000.00817.09
8.0.260.0030.00317.09
8.0.250.0030.00316.91
8.0.240.0030.00316.82
8.0.230.0000.00716.96
8.0.220.0030.00316.76
8.0.210.0040.00416.89
8.0.200.0030.00316.98
8.0.190.0000.00716.95
8.0.180.0080.00016.79
8.0.170.0030.00516.91
8.0.160.0030.00316.89
8.0.150.0070.00016.81
8.0.140.0040.00416.80
8.0.130.0030.00313.27
8.0.120.0080.00016.86
8.0.110.0040.00416.79
8.0.100.0000.00716.78
8.0.90.0050.00216.73
8.0.80.0040.01116.82
8.0.70.0070.00016.93
8.0.60.0040.00416.75
8.0.50.0000.00716.84
8.0.30.0070.01217.03
8.0.20.0070.01317.40
8.0.10.0000.00716.88
8.0.00.0150.01016.75
7.4.330.0020.00216.67
7.4.320.0040.00416.36
7.4.300.0030.00316.45
7.4.290.0070.00016.57
7.4.280.0030.00616.42
7.4.270.0030.00316.55
7.4.260.0000.00816.41
7.4.250.0040.00416.40
7.4.240.0020.00516.33
7.4.230.0070.00016.27
7.4.220.0060.01016.52
7.4.210.0050.01016.51
7.4.200.0000.00716.53
7.4.160.0090.00916.38
7.4.150.0140.00317.40
7.4.140.0130.00817.86
7.4.130.0150.00616.42
7.4.120.0110.00716.53
7.4.110.0140.01216.49
7.4.100.0000.01716.34
7.4.90.0090.00916.64
7.4.80.0130.00619.39
7.4.70.0120.00616.62
7.4.60.0060.01116.27
7.4.50.0030.01416.54
7.4.40.0140.00316.62
7.4.30.0090.00916.40
7.4.00.0120.00515.01
7.3.330.0050.00013.31
7.3.320.0000.00513.30
7.3.310.0030.00316.39
7.3.300.0000.00716.36
7.3.290.0000.00716.31
7.3.280.0090.00916.32
7.3.270.0030.01417.40
7.3.260.0090.00916.40
7.3.250.0080.01016.43
7.3.240.0140.00516.31
7.3.230.0160.00716.39
7.3.210.0100.00716.41
7.3.200.0200.00616.38
7.3.190.0120.00816.49
7.3.180.0060.00916.32
7.3.170.0120.00616.50
7.3.160.0090.01316.32
7.3.120.0070.01014.86
7.3.110.0070.01114.58
7.3.100.0030.01314.91
7.3.90.0130.00314.95
7.3.80.0070.01014.98
7.3.70.0070.00714.84
7.3.60.0090.00614.91
7.3.50.0030.01314.86
7.3.40.0060.00614.48
7.3.30.0070.00714.82
7.3.20.0070.01016.71
7.3.10.0080.00316.55
7.3.00.0100.00516.57
7.2.330.0070.01016.48
7.2.320.0060.01116.33
7.2.310.0080.00816.66
7.2.300.0110.01216.66
7.2.290.0090.00616.38
7.2.250.0090.00914.84
7.2.240.0130.00615.14
7.2.230.0030.01014.63
7.2.220.0100.00315.13
7.2.210.0040.01114.98
7.2.200.0030.00814.71
7.2.190.0030.00914.62
7.2.180.0030.01114.66
7.2.170.0040.01114.66
7.2.130.0070.01016.73
7.2.120.0100.00416.70
7.2.110.0090.00616.89
7.2.100.0030.01016.72
7.2.90.0060.00916.91
7.2.80.0110.00416.73
7.2.70.0120.00316.54
7.2.60.0000.01216.63
7.2.50.0070.00716.79
7.2.40.0090.00316.74
7.2.30.0060.00616.91
7.2.20.0140.00016.77
7.2.10.0070.01016.88
7.2.00.0100.00718.04
7.1.330.0070.00715.77
7.1.320.0000.00915.77
7.1.310.0060.01315.67
7.1.300.0080.00415.75
7.1.290.0030.01415.56
7.1.280.0100.00315.72
7.1.270.0070.00715.56
7.1.260.0060.00615.36
7.1.250.0000.01515.35
7.1.200.0000.01015.77
7.1.100.0070.01017.84
7.1.70.0040.00917.00
7.1.60.0070.01719.27
7.1.50.0070.01116.97
7.1.00.0030.07722.57
7.0.200.0030.00616.74
7.0.60.0170.08021.73
7.0.50.0130.07017.85
7.0.40.0070.04320.11
7.0.30.0270.07720.21
7.0.20.0270.08320.12
7.0.10.0000.04720.33
7.0.00.0170.07720.22
5.6.280.0000.03321.07
5.6.210.0230.06720.53
5.6.200.0000.04318.16
5.6.190.0100.08320.77
5.6.180.0470.07320.65
5.6.170.0330.07320.48
5.6.160.0100.08720.43
5.6.150.0000.08718.17
5.6.140.0070.07018.28
5.6.130.0100.04718.17
5.6.120.0200.07321.09
5.6.110.0130.07720.98
5.6.100.0030.04320.98
5.6.90.0100.05721.00
5.6.80.0100.06720.45
5.5.350.0030.05020.50
5.5.340.0030.08017.98
5.5.330.0100.05720.40
5.5.320.0270.08020.27
5.5.310.0170.04020.30
5.5.300.0000.04017.99
5.5.290.0200.07017.96
5.5.280.0000.09020.75
5.5.270.0100.07320.77
5.5.260.0070.05320.85
5.5.250.0070.08020.59
5.5.240.0170.07020.16

preferences:
52.44 ms | 400 KiB | 5 Q