3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass{ public static $meta = [1,2,3]; public static function getMeta() { return self::$meta; } } class Child extends ParentClass{ public static function getMeta() { return array_merge(parent::getMeta(),[4,5]); } } var_dump(Child::getMeta());

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.70.0210.00018.31
8.3.60.0080.00818.43
8.3.50.0070.00719.84
8.3.40.0060.01218.67
8.3.30.0120.00318.47
8.3.20.0070.00021.89
8.3.10.0040.00421.89
8.3.00.0000.00721.91
8.2.180.0120.00618.41
8.2.170.0060.00922.96
8.2.160.0110.00320.50
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00819.39
8.2.120.0050.00326.35
8.2.110.0040.00422.08
8.2.100.0110.00021.04
8.2.90.0040.00417.75
8.2.80.0030.00618.73
8.2.70.0080.00017.93
8.2.60.0040.00417.50
8.2.50.0000.00718.10
8.2.40.0030.00620.60
8.2.30.0040.00419.24
8.2.20.0060.00317.91
8.2.10.0000.00717.98
8.2.00.0070.00018.16
8.1.280.0080.00625.92
8.1.270.0080.00021.84
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00923.86
8.1.230.0070.00419.12
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0030.00618.54
8.1.160.0040.00418.72
8.1.150.0080.00018.81
8.1.140.0000.00719.07
8.1.130.0000.00717.34
8.1.120.0070.00017.40
8.1.110.0020.00517.32
8.1.100.0040.00417.34
8.1.90.0040.00417.21
8.1.80.0090.00017.30
8.1.70.0000.00717.26
8.1.60.0040.00417.45
8.1.50.0070.00017.46
8.1.40.0030.00517.50
8.1.30.0000.00717.69
8.1.20.0040.00417.55
8.1.10.0070.00017.50
8.1.00.0030.00517.34
8.0.300.0000.00818.77
8.0.290.0060.00316.63
8.0.280.0000.00718.41
8.0.270.0070.00017.18
8.0.260.0030.00316.66
8.0.250.0070.00016.91
8.0.240.0070.00316.89
8.0.230.0040.00416.76
8.0.220.0000.00716.74
8.0.210.0030.00316.77
8.0.200.0000.00616.91
8.0.190.0020.00516.92
8.0.180.0000.00816.79
8.0.170.0030.00616.84
8.0.160.0070.00016.82
8.0.150.0000.00716.73
8.0.140.0000.00716.85
8.0.130.0040.00413.25
8.0.120.0040.00416.83
8.0.110.0000.00716.66
8.0.100.0000.00716.72
8.0.90.0000.00716.83
8.0.80.0090.00616.75
8.0.70.0000.00716.82
8.0.60.0000.00816.76
8.0.50.0040.00416.82
8.0.30.0110.00716.94
8.0.20.0090.01317.40
8.0.10.0040.00416.87
8.0.00.0090.00916.83
7.4.330.0020.00215.55
7.4.320.0030.00316.46
7.4.300.0070.00016.55
7.4.290.0070.00016.50
7.4.280.0050.00516.41
7.4.270.0030.00316.55
7.4.260.0030.00416.55
7.4.250.0040.00416.38
7.4.240.0000.00716.62
7.4.230.0070.00016.37
7.4.220.0040.00416.25
7.4.210.0030.01716.50
7.4.200.0000.00816.46
7.4.160.0100.00716.52
7.4.150.0180.00017.40
7.4.140.0110.00817.86
7.4.130.0070.01116.26
7.4.120.0110.01216.44
7.4.110.0100.00716.70
7.4.100.0160.00016.29
7.4.90.0030.01416.46
7.4.80.0090.00919.39
7.4.70.0140.00316.41
7.4.60.0030.01316.27
7.4.50.0040.00816.43
7.4.40.0090.00916.42
7.4.00.0100.00715.11
7.3.330.0030.00313.25
7.3.320.0030.00313.15
7.3.310.0000.00616.38
7.3.300.0070.00016.18
7.3.290.0060.01216.32
7.3.280.0130.00316.32
7.3.270.0280.01617.40
7.3.260.0090.00816.37
7.3.250.0140.00416.33
7.3.240.0100.01016.33
7.3.230.0140.00316.57
7.3.210.0060.01016.16
7.3.200.0140.00316.36
7.3.190.0080.00816.26
7.3.180.0000.01616.28
7.3.170.0080.01516.40
7.3.160.0090.01216.26
7.3.10.0030.01016.57
7.3.00.0040.01116.46
7.2.330.0190.00316.61
7.2.320.0080.00816.52
7.2.310.0030.01616.50
7.2.300.0110.01116.46
7.2.290.0120.00616.72
7.2.130.0050.00516.57
7.2.120.0060.00916.57
7.2.110.0030.01016.83
7.2.100.0090.00016.69
7.2.90.0060.00616.87
7.2.80.0060.00616.93
7.2.70.0030.00916.93
7.2.60.0080.00516.79
7.2.50.0030.00916.50
7.2.40.0000.01316.94
7.2.30.0080.00816.60
7.2.20.0070.01016.63
7.2.10.0090.00616.98
7.2.00.0200.01117.36
7.1.250.0070.01015.86
7.1.200.0040.01115.40
7.1.120.0350.00316.66
7.1.110.0270.01515.85
7.1.100.0350.00315.74
7.1.90.0360.00716.03
7.1.80.0470.00415.77
7.1.70.0360.01015.24
7.1.60.0540.00732.84
7.1.50.0480.01332.87
7.1.40.0470.01432.54
7.1.30.0590.00332.46
7.1.20.0460.01332.55
7.1.10.0390.00614.84
7.1.00.0500.01014.64

preferences:
60.3 ms | 400 KiB | 5 Q