3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static public function fromStuff() { return new self; } } class B extends A{}; $x = B::fromStuff(); var_dump($x);

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.0180.00018.55
8.3.50.0040.01118.16
8.3.40.0070.00718.34
8.3.30.0060.00918.46
8.3.20.0090.00621.60
8.3.10.0070.00021.82
8.3.00.0030.00619.43
8.2.180.0070.01116.75
8.2.170.0150.00622.96
8.2.160.0140.00021.06
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00820.94
8.2.120.0080.00026.35
8.2.110.0060.00321.10
8.2.100.0110.00017.66
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0050.00317.80
8.2.60.0040.00417.92
8.2.50.0070.00018.10
8.2.40.0040.00420.59
8.2.30.0040.00419.27
8.2.20.0040.00417.86
8.2.10.0000.00719.77
8.2.00.0000.00817.86
8.1.280.0110.00425.92
8.1.270.0080.00022.10
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0030.00622.66
8.1.230.0090.00317.70
8.1.220.0000.00917.74
8.1.210.0040.00718.77
8.1.200.0000.00817.23
8.1.190.0000.00817.00
8.1.180.0080.00018.10
8.1.170.0050.00318.56
8.1.160.0000.00818.80
8.1.150.0000.00718.92
8.1.140.0000.00717.64
8.1.130.0050.00219.01
8.1.120.0050.00217.27
8.1.110.0040.00417.38
8.1.100.0110.00017.37
8.1.90.0000.00717.43
8.1.80.0090.00017.43
8.1.70.0030.00317.39
8.1.60.0050.00317.57
8.1.50.0040.00417.40
8.1.40.0030.00517.56
8.1.30.0080.00017.54
8.1.20.0040.00417.63
8.1.10.0080.00317.38
8.1.00.0050.00317.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.29
8.0.270.0030.00317.11
8.0.260.0040.00417.14
8.0.250.0030.00316.86
8.0.240.0040.00416.73
8.0.230.0040.00416.91
8.0.220.0000.00816.68
8.0.210.0060.00016.70
8.0.200.0070.00016.77
8.0.190.0040.00416.79
8.0.180.0080.00016.83
8.0.170.0040.00616.84
8.0.160.0040.00416.84
8.0.150.0000.00916.73
8.0.140.0030.00616.67
8.0.130.0000.00513.24
8.0.120.0000.00816.63
8.0.110.0040.00416.84
8.0.100.0070.00016.81
8.0.90.0040.00416.77
8.0.80.0150.00016.79
8.0.70.0040.00416.82
8.0.60.0000.00816.64
8.0.50.0000.00816.80
8.0.30.0090.00717.07
8.0.20.0110.01017.40
8.0.10.0070.00016.97
8.0.00.0060.01416.75
7.4.330.0050.00015.55
7.4.320.0070.00016.39
7.4.300.0060.00016.64
7.4.290.0030.00416.59
7.4.280.0040.00416.50
7.4.270.0000.00716.58
7.4.260.0030.00516.52
7.4.250.0070.00016.51
7.4.240.0040.00416.61
7.4.230.0030.00316.64
7.4.220.0000.00716.71
7.4.210.0120.00516.56
7.4.200.0030.00316.40
7.4.160.0130.00816.44
7.4.140.0120.00717.86
7.4.130.0030.01516.36
7.4.120.0090.01016.35
7.4.110.0090.01216.71
7.4.100.0060.01216.27
7.4.90.0140.00316.47
7.4.80.0140.00919.39
7.4.70.0140.00316.47
7.4.60.0100.00716.40
7.4.50.0030.01016.36
7.4.40.0060.00916.46
7.4.00.0040.01214.91
7.3.330.0060.00013.03
7.3.320.0060.00013.19
7.3.310.0040.00416.09
7.3.300.0000.00716.23
7.3.290.0070.00016.18
7.3.280.0120.00216.21
7.3.260.0070.01116.29
7.3.240.0040.01216.23
7.3.230.0170.00016.59
7.3.210.0100.01016.24
7.3.200.0030.01316.37
7.3.190.0130.00916.16
7.3.180.0060.00916.43
7.3.170.0090.01216.36
7.3.160.0160.00616.16
7.3.120.0080.00914.61
7.3.110.0100.00714.63
7.3.100.0050.00814.61
7.3.90.0020.01114.77
7.3.80.0050.00914.64
7.3.70.0010.00714.56
7.3.60.0090.00514.56
7.3.50.0110.00614.66
7.3.40.0010.01214.75
7.3.30.0090.00614.60
7.3.20.0100.00416.58
7.3.10.0050.00916.60
7.3.00.0030.01116.11
7.2.330.0070.01116.41
7.2.320.0030.02016.26
7.2.310.0090.01216.36
7.2.300.0130.00316.43
7.2.290.0070.01416.59
7.2.250.0100.00814.97
7.2.240.0060.01214.86
7.2.230.0060.00514.97
7.2.220.0040.00814.70
7.2.210.0050.00914.92
7.2.200.0040.00714.84
7.2.190.0030.00814.87
7.2.180.0090.00814.91
7.2.170.0050.00714.88
7.2.60.0070.00716.77
7.2.50.0070.00716.98
7.2.40.1900.01417.88
7.2.30.2010.01818.09
7.2.20.2110.01317.93
7.2.10.1570.01517.58
7.2.00.2140.01418.07
7.1.330.0080.00415.62
7.1.320.0070.00715.69
7.1.310.0030.01115.62
7.1.300.0100.00515.77
7.1.290.0020.00915.74
7.1.280.0060.00615.53
7.1.270.0080.00615.65
7.1.260.0020.01115.72
7.1.200.0060.00615.52
7.1.160.1870.00916.93
7.1.150.2370.01016.46
7.1.140.2050.01616.99
7.1.130.1790.01016.83
7.1.120.2840.01516.99
7.1.110.1840.00716.18
7.1.100.1660.01316.19
7.1.90.2230.00915.74
7.1.80.2140.01315.85
7.1.70.2230.01215.36
7.1.60.2240.01933.13
7.1.50.2700.01532.85
7.1.40.2560.01632.51
7.1.30.3110.01532.64
7.1.20.2540.01932.75
7.1.10.2700.01114.54
7.1.00.2420.00714.55

preferences:
52.27 ms | 400 KiB | 5 Q