3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function create() { $class = get_called_class(); $inst = new $class; return $inst; } } class Bar extends Foo { function __construct() { parent::constsssdfvdruct(); } } $bar = Bar::create(); var_dump($bar);

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.0170.00318.68
8.3.50.0140.00522.05
8.3.40.0150.00318.84
8.3.30.0140.00018.77
8.3.20.0040.00420.09
8.3.10.0040.00423.71
8.3.00.0040.00419.50
8.2.180.0150.00716.75
8.2.170.0100.00322.96
8.2.160.0000.01320.35
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0100.00017.63
8.2.110.0070.00422.25
8.2.100.0090.00317.80
8.2.90.0000.00719.14
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0030.00618.04
8.2.50.0090.00018.07
8.2.40.0090.00019.18
8.2.30.0080.00020.63
8.2.20.0040.00417.71
8.2.10.0040.00417.98
8.2.00.0000.00718.04
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.58
8.1.230.0060.00617.52
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.36
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0040.00418.96
8.1.160.0000.00721.99
8.1.150.0000.00718.73
8.1.140.0040.00419.50
8.1.130.0070.00017.54
8.1.120.0030.00417.29
8.1.110.0040.00417.37
8.1.100.0000.00817.40
8.1.90.0030.00417.39
8.1.80.0050.00217.38
8.1.70.0000.00817.37
8.1.60.0060.00317.47
8.1.50.0040.00417.43
8.1.40.0060.00317.55
8.1.30.0080.00017.64
8.1.20.0000.00817.51
8.1.10.0070.00017.54
8.1.00.0000.00817.36
8.0.300.0060.00318.77
8.0.290.0050.00216.75
8.0.280.0000.00718.38
8.0.270.0000.00717.11
8.0.260.0060.00017.18
8.0.250.0040.00416.89
8.0.240.0000.00816.95
8.0.230.0000.00716.98
8.0.220.0030.00516.90
8.0.210.0050.00216.79
8.0.200.0000.00716.80
8.0.190.0000.00816.89
8.0.180.0030.00516.89
8.0.170.0040.00416.81
8.0.160.0000.00716.84
8.0.150.0000.00816.79
8.0.140.0030.00416.72
8.0.130.0000.00613.39
8.0.120.0000.00816.84
8.0.110.0020.00516.85
8.0.100.0040.00416.80
8.0.90.0070.00016.91
8.0.80.0060.01216.89
8.0.70.0040.00416.70
8.0.60.0020.00516.73
8.0.50.0070.00016.83
8.0.30.0150.00517.06
8.0.20.0120.00717.40
8.0.10.0000.00817.03
8.0.00.0140.00316.68
7.4.330.0000.00715.08
7.4.320.0030.00316.33
7.4.300.0030.00316.58
7.4.290.0000.00716.44
7.4.280.0000.00716.57
7.4.270.0030.00316.54
7.4.260.0050.00516.43
7.4.250.0040.00416.64
7.4.240.0030.00316.62
7.4.230.0030.00316.57
7.4.220.0030.01316.43
7.4.210.0110.00716.53
7.4.200.0000.00716.66
7.4.160.0060.00916.40
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0100.00716.49
7.4.120.0100.01016.61
7.4.110.0060.01216.61
7.4.100.0120.01216.29
7.4.90.0130.00616.49
7.4.80.0090.01219.39
7.4.70.0090.00916.47
7.4.60.0060.01016.50
7.4.50.0030.00316.51
7.4.40.0130.00616.41
7.4.30.0090.00916.36
7.4.00.0030.01315.22
7.3.330.0000.00813.35
7.3.320.0000.00613.29
7.3.310.0000.00716.32
7.3.300.0030.00316.43
7.3.290.0050.00316.42
7.3.280.0130.00516.40
7.3.270.0150.00417.40
7.3.260.0100.00716.61
7.3.250.0080.01016.45
7.3.240.0110.00716.28
7.3.230.0090.01216.70
7.3.210.0030.01316.38
7.3.200.0110.01116.38
7.3.190.0140.00716.34
7.3.180.0080.00816.42
7.3.170.0100.01116.48
7.3.160.0070.01016.56
7.3.10.0090.00016.74
7.3.00.0040.00816.65
7.2.330.0140.00716.59
7.2.320.0030.01416.57
7.2.310.0130.00316.51
7.2.300.0120.00916.37
7.2.290.0110.00616.35
7.2.130.0070.00716.81
7.2.120.0060.00316.59
7.2.110.0030.00716.72
7.2.100.0130.00016.46
7.2.90.0050.00516.62
7.2.80.0030.01016.85
7.2.70.0110.00316.94
7.2.60.0090.00516.64
7.2.50.0030.01116.86
7.2.40.0070.00416.52
7.2.30.0040.00716.75
7.2.20.0030.00616.87
7.2.10.0070.00716.91
7.2.00.0070.00718.10
7.1.250.0120.00315.84
7.1.200.0080.00415.79
7.1.100.0080.00017.76
7.1.70.0040.00416.92
7.1.60.0090.01519.48
7.1.50.0090.01316.96
7.1.00.0030.07322.45
7.0.200.0050.00514.62
7.0.60.0070.08020.03
7.0.50.0130.07017.95
7.0.40.0100.05720.24
7.0.30.0170.06020.24
7.0.20.0300.04720.50
7.0.10.0030.08020.09
7.0.00.0030.04320.20
5.6.280.0070.06021.05
5.6.210.0130.07320.63
5.6.200.0100.08718.25
5.6.190.0070.09720.64
5.6.180.0170.04720.52
5.6.170.0270.04320.56
5.6.160.0130.07720.55
5.6.150.0070.07318.21
5.6.140.0070.06718.14
5.6.130.0070.07718.24
5.6.120.0170.03321.10
5.6.110.0100.04721.15
5.6.100.0100.07020.99
5.6.90.0070.08321.07
5.6.80.0100.06320.41
5.5.350.4300.03720.39
5.5.340.0130.05018.05
5.5.330.0030.04320.36
5.5.320.0330.07720.24
5.5.310.0300.07320.19
5.5.300.0100.05017.98
5.5.290.0130.06718.08
5.5.280.0100.08320.85
5.5.270.0100.06320.77
5.5.260.0070.05020.87
5.5.250.0130.05720.62
5.5.240.0070.03320.16

preferences:
52.62 ms | 401 KiB | 5 Q