3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X{ public $prop = 42; function test(){ return new static('anything you want to pass to a constructor which is not here because I am lazy'); } } $x = new X(); var_dump($x->test());

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.0060.01018.55
8.3.50.0120.00316.50
8.3.40.0070.01118.36
8.3.30.0000.01518.72
8.3.20.0070.00018.94
8.3.10.0070.00021.77
8.3.00.0070.00020.68
8.2.180.0090.00616.50
8.2.170.0170.00022.96
8.2.160.0100.00322.12
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00419.64
8.2.120.0040.00426.35
8.2.110.0190.00321.12
8.2.100.0040.00817.75
8.2.90.0030.00617.72
8.2.80.0040.00417.97
8.2.70.0060.00317.93
8.2.60.0040.00418.09
8.2.50.0000.00818.10
8.2.40.0060.00319.11
8.2.30.0000.00719.26
8.2.20.0050.00217.97
8.2.10.0000.00718.05
8.2.00.0040.00417.91
8.1.280.0090.00625.92
8.1.270.0000.00722.03
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00019.09
8.1.230.0100.00020.97
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0050.00517.23
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0080.00018.83
8.1.150.0050.00218.83
8.1.140.0040.00422.14
8.1.130.0000.00720.07
8.1.120.0070.00017.41
8.1.110.0000.00717.39
8.1.100.0030.00617.41
8.1.90.0040.00417.39
8.1.80.0000.00717.23
8.1.70.0000.00817.34
8.1.60.0040.00417.57
8.1.50.0040.00417.42
8.1.40.0000.00817.49
8.1.30.0060.00617.61
8.1.20.0000.01217.63
8.1.10.0000.00717.47
8.1.00.0070.00017.49
8.0.300.0000.00819.92
8.0.290.0000.01016.63
8.0.280.0000.00818.29
8.0.270.0040.00417.20
8.0.260.0030.00318.41
8.0.250.0030.00316.80
8.0.240.0040.00416.75
8.0.230.0030.00316.90
8.0.220.0050.00316.84
8.0.210.0060.00016.74
8.0.200.0030.00516.88
8.0.190.0000.00716.89
8.0.180.0080.00016.88
8.0.170.0080.00016.86
8.0.160.0000.00716.81
8.0.150.0070.00016.87
8.0.140.0000.00816.79
8.0.130.0030.00313.20
8.0.120.0030.00516.70
8.0.110.0000.00716.70
8.0.100.0040.00416.78
8.0.90.0040.00416.66
8.0.80.0080.00916.82
8.0.70.0000.00716.70
8.0.60.0040.00416.71
8.0.50.0000.00716.74
8.0.30.0110.00716.98
8.0.20.0090.01217.40
8.0.10.0040.00416.85
8.0.00.0140.00516.68
7.4.330.0030.00315.55
7.4.320.0030.00316.51
7.4.300.0030.00316.41
7.4.290.0070.00016.43
7.4.280.0030.00716.49
7.4.270.0000.00716.56
7.4.260.0040.00416.57
7.4.250.0040.00416.52
7.4.240.0000.00716.45
7.4.230.0000.00716.48
7.4.220.0040.00416.67
7.4.210.0100.00616.59
7.4.200.0070.00016.39
7.4.160.0130.00316.32
7.4.140.0110.01117.86
7.4.130.0130.00316.31
7.4.120.0100.00916.38
7.4.110.0090.00916.39
7.4.100.0030.01316.43
7.4.90.0070.01016.41
7.4.80.0100.00719.39
7.4.70.0040.01416.38
7.4.60.0080.00816.48
7.4.50.0030.01016.39
7.4.40.0100.00716.34
7.4.00.0060.01214.74
7.3.330.0020.00213.05
7.3.320.0060.00013.06
7.3.310.0040.00416.13
7.3.300.0030.00316.20
7.3.290.0040.00416.24
7.3.280.0100.00616.17
7.3.260.0100.00816.39
7.3.240.0110.00616.41
7.3.230.0100.00716.20
7.3.210.0100.01016.40
7.3.200.0060.01216.23
7.3.190.0150.00616.19
7.3.180.0120.00916.55
7.3.170.0030.01716.11
7.3.160.0090.00616.46
7.3.120.0060.01314.40
7.3.110.0090.00814.61
7.3.100.0040.01114.78
7.3.90.0060.00814.54
7.3.80.0070.00814.52
7.3.70.0040.00914.67
7.3.60.0030.00714.66
7.3.50.0070.00614.73
7.3.40.0040.00814.58
7.3.30.0050.00814.74
7.3.20.0060.00716.54
7.3.10.0070.00916.49
7.3.00.0060.01116.56
7.2.330.0070.01016.19
7.2.320.0060.01716.54
7.2.310.0120.00416.74
7.2.300.0110.00916.20
7.2.290.0090.01316.65
7.2.250.0070.01215.00
7.2.240.0070.01415.09
7.2.230.0070.00814.77
7.2.220.0060.00814.97
7.2.210.0040.01114.84
7.2.200.0040.01014.79
7.2.190.0020.01214.89
7.2.180.0060.00814.83
7.2.170.0100.00414.93
7.2.110.0290.01314.30
7.2.100.0360.01114.54
7.2.90.0420.00914.50
7.2.80.0380.00314.26
7.2.70.0350.00614.50
7.2.60.0370.00614.56
7.2.50.0340.00714.53
7.2.40.0340.01114.85
7.2.30.0430.00914.96
7.2.20.0410.00414.75
7.2.10.0330.00714.62
7.2.00.0400.00714.88
7.1.330.0080.00815.54
7.1.320.0030.01115.63
7.1.310.0070.00615.62
7.1.300.0040.01115.55
7.1.290.0050.00815.59
7.1.280.0050.00615.65
7.1.270.0050.00615.59
7.1.260.0080.00615.70
7.1.230.0700.00013.67
7.1.220.0380.00613.79
7.1.210.0450.01013.49
7.1.200.0350.00813.46
7.1.190.0540.00713.77
7.1.180.0310.00913.58
7.1.170.0350.01013.50
7.1.160.0380.00313.63
7.1.150.0300.01213.61
7.1.140.0350.00713.45
7.1.130.0360.00713.58
7.1.120.0340.01013.74
7.1.110.0330.01213.81
7.1.100.0510.00313.50
7.1.90.0340.00413.77
7.1.80.0300.01013.38
7.1.70.0340.00613.70
7.1.60.0390.00613.54
7.1.50.0380.00913.37
7.1.40.0690.00713.81
7.1.30.0770.00713.68
7.1.20.0400.01013.38
7.1.10.0330.00713.84
7.1.00.0450.00313.46
5.6.380.0130.00614.23

preferences:
72.3 ms | 400 KiB | 5 Q