3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Model { public function create() { return new self(); } } class Product extends Model { } $product = Product::create(); var_dump($product);

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.88
8.3.50.0110.00416.49
8.3.40.0120.00418.63
8.3.30.0060.00918.71
8.3.20.0030.00520.07
8.3.10.0000.01823.53
8.3.00.0030.00619.26
8.2.180.0150.00616.75
8.2.170.0040.01122.96
8.2.160.0070.00720.44
8.2.150.0040.01524.18
8.2.140.0080.00024.66
8.2.130.0090.00020.39
8.2.120.0050.00326.35
8.2.110.0050.00520.42
8.2.100.0090.00317.91
8.2.90.0040.00419.22
8.2.80.0070.00217.97
8.2.70.0030.00617.63
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0040.00419.39
8.2.30.0000.00720.71
8.2.20.0030.00617.55
8.2.10.0040.00417.87
8.2.00.0040.00417.89
8.1.280.0110.00425.92
8.1.270.0060.00323.99
8.1.260.0050.00328.09
8.1.250.0060.00328.09
8.1.240.0040.00423.79
8.1.230.0040.00717.52
8.1.220.0000.00817.74
8.1.210.0000.01018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.54
8.1.180.0000.00818.10
8.1.170.0000.00818.40
8.1.160.0000.00721.94
8.1.150.0000.00718.76
8.1.140.0000.00819.36
8.1.130.0070.00017.48
8.1.120.0070.00017.25
8.1.110.0040.00417.32
8.1.100.0020.00517.38
8.1.90.0060.00317.34
8.1.80.0000.00817.29
8.1.70.0070.00017.32
8.1.60.0050.00317.39
8.1.50.0060.00317.48
8.1.40.0040.00417.43
8.1.30.0060.00317.63
8.1.20.0040.00417.57
8.1.10.0000.00817.51
8.1.00.0050.00317.30
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0030.00618.42
8.0.270.0050.00217.18
8.0.260.0030.00317.19
8.0.250.0040.00416.98
8.0.240.0030.00316.82
8.0.230.0050.00216.84
8.0.220.0040.00416.79
8.0.210.0040.00416.93
8.0.200.0070.00016.94
8.0.190.0040.00416.81
8.0.180.0040.00416.96
8.0.170.0040.00416.80
8.0.160.0050.00316.93
8.0.150.0030.00316.87
8.0.140.0000.00716.83
8.0.130.0000.00813.30
8.0.120.0000.00816.82
8.0.110.0040.00416.91
8.0.100.0000.00716.84
8.0.90.0080.00016.76
8.0.80.0090.00916.87
8.0.70.0050.00316.84
8.0.60.0030.00516.79
8.0.50.0050.00316.73
8.0.30.0110.00517.06
8.0.20.0110.01217.40
8.0.10.0000.00716.81
8.0.00.0080.01016.82
7.4.330.0000.00516.71
7.4.320.0030.00316.44
7.4.300.0060.00016.46
7.4.290.0000.00816.35
7.4.280.0000.00916.47
7.4.270.0080.00416.59
7.4.260.0000.00716.51
7.4.250.0070.00016.45
7.4.240.0050.00216.46
7.4.230.0000.00716.67
7.4.220.0190.00616.51
7.4.210.0090.01216.59
7.4.200.0000.00716.57
7.4.160.0080.00816.53
7.4.150.0030.01517.40
7.4.140.0100.01217.86
7.4.130.0080.00816.52
7.4.120.0100.00716.35
7.4.110.0130.00316.51
7.4.100.0140.00316.55
7.4.90.0100.00616.46
7.4.80.0100.00719.39
7.4.70.0150.00616.39
7.4.60.0060.01216.42
7.4.50.0100.00716.37
7.4.40.0090.01316.43
7.4.30.0060.00916.51
7.4.00.0040.01214.67
7.3.330.0000.00713.22
7.3.320.0060.00013.08
7.3.310.0000.00716.20
7.3.300.0030.00316.29
7.3.290.0100.00616.25
7.3.280.0080.00916.28
7.3.270.0060.01117.40
7.3.260.0070.01416.53
7.3.250.0110.00716.22
7.3.240.0090.01116.35
7.3.230.0100.00716.39
7.3.210.0110.00616.20
7.3.200.0130.00316.24
7.3.190.0110.00516.23
7.3.180.0140.00316.26
7.3.170.0100.01316.40
7.3.160.0140.00816.44
7.2.330.0130.00616.52
7.2.320.0060.01216.16
7.2.310.0080.00916.32
7.2.300.0080.00816.55
7.2.290.0030.02016.61
7.2.60.0100.00616.60
7.2.00.0040.00819.41
7.1.200.0060.00615.52
7.1.100.0030.00918.19
7.1.70.0000.00817.10
7.1.60.0120.01219.36
7.1.50.0100.01034.86
7.1.00.0000.08022.40
7.0.200.0000.00916.56
7.0.60.0130.07319.95
7.0.50.0070.07317.87
7.0.40.0100.04020.11
7.0.30.0300.04720.12
7.0.20.0170.05020.19
7.0.10.0130.06020.06
7.0.00.0000.04720.37
5.6.280.0070.03020.91
5.6.210.0030.06720.65
5.6.200.0030.06718.19
5.6.190.0070.08720.63
5.6.180.0530.06320.42
5.6.170.0100.04020.54
5.6.160.0070.04720.54
5.6.150.0070.08718.17
5.6.140.0000.08018.18
5.6.130.0070.07718.29
5.6.120.0200.05321.05
5.6.110.0100.08021.14
5.6.100.0100.03321.00
5.6.90.0070.08021.08
5.6.80.0100.08020.38
5.5.350.0200.08320.35
5.5.340.0030.07317.98
5.5.330.0030.06020.31
5.5.320.0070.04720.31
5.5.310.0270.06720.34
5.5.300.0100.04018.08
5.5.290.0000.04318.01
5.5.280.0070.08320.88
5.5.270.0130.06020.96
5.5.260.0070.06020.79
5.5.250.0100.06720.47
5.5.240.0200.08020.26

preferences:
37.7 ms | 400 KiB | 5 Q