3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct(string $v) { $this->v = $v; } } $a = new A("init string"); var_dump($a->v); // fill with integer $a->v = 5; var_dump($a->v);

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.5.00.0100.01119.97
8.4.150.0020.00014.05
8.4.140.0140.00717.42
8.4.130.0120.00718.65
8.4.120.0090.00723.95
8.4.110.0110.00918.70
8.4.100.0090.01219.08
8.4.90.0130.00620.38
8.4.80.0110.00918.55
8.4.70.0120.00819.05
8.4.60.0120.00820.51
8.4.50.0080.01322.25
8.4.40.0070.01319.51
8.4.30.0090.01019.04
8.4.20.0070.01424.26
8.4.10.0100.01023.76
8.3.280.0090.01218.30
8.3.270.0170.00716.54
8.3.260.0130.00716.88
8.3.250.0050.00318.65
8.3.240.0100.00917.13
8.3.230.0060.00416.90
8.3.220.0040.00419.11
8.3.210.0110.00416.73
8.3.200.0040.00516.77
8.3.190.0060.00317.02
8.3.180.0060.01218.59
8.3.170.0090.00618.71
8.3.160.0090.00919.06
8.3.150.0180.00016.73
8.3.140.0080.00016.84
8.3.130.0060.00318.61
8.3.120.0060.00319.03
8.3.110.0040.00416.92
8.3.100.0070.00316.93
8.3.90.0000.00818.57
8.3.80.0110.00017.97
8.3.70.0140.00716.50
8.3.60.0100.00716.75
8.3.50.0140.00418.44
8.3.40.0100.01020.52
8.3.30.0100.00618.76
8.3.20.0100.01024.18
8.3.10.0110.00724.66
8.3.00.0040.00426.16
8.2.290.0110.00820.37
8.2.280.0120.00718.68
8.2.270.0120.00616.57
8.2.260.0110.00716.94
8.2.250.0050.00316.65
8.2.240.0030.00616.48
8.2.230.0030.00620.94
8.2.220.0080.00024.06
8.2.210.0100.00726.77
8.2.200.0040.00418.66
8.2.190.0190.00316.88
8.2.180.0070.01116.50
8.2.170.0110.01118.95
8.2.160.0070.01522.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0060.00320.80
8.2.110.0060.00320.34
8.2.100.0120.00019.64
8.2.90.0000.00817.82
8.2.80.0080.00017.97
8.2.70.0040.00417.93
8.2.60.0040.00418.03
8.2.50.0030.00618.10
8.2.40.0050.00319.18
8.2.30.0040.00419.20
8.2.20.0070.00019.05
8.2.10.0070.00017.99
8.2.00.0070.00317.61
8.1.330.0100.00821.74
8.1.320.0110.00816.09
8.1.310.0100.00716.60
8.1.300.0030.00617.75
8.1.290.0110.00318.88
8.1.280.0150.00025.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.33
8.1.230.0080.00422.80
8.1.220.0050.00517.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0080.00017.22
8.1.180.0030.00518.10
8.1.170.0040.00418.48
8.1.160.0070.00018.77
8.1.150.0000.00818.50
8.1.140.0040.00417.39
8.1.130.0060.00319.21
8.1.120.0090.00019.14
8.1.110.0080.00319.13
8.1.100.0000.01019.14
8.1.90.0000.00917.45
8.1.80.0030.00617.41
8.1.70.0090.00017.45
8.1.60.0080.00017.53
8.1.50.0060.00317.57
8.1.40.0020.00517.68
8.1.30.0050.00217.57
8.1.20.0090.00017.57
8.1.10.0080.00017.53
8.1.00.0070.00317.43
8.0.300.0030.00619.89
8.0.290.0000.00816.63
8.0.280.0000.00718.46
8.0.270.0040.00417.89
8.0.260.0080.00018.51
8.0.250.0070.00018.66
8.0.240.0040.00418.61
8.0.230.0000.00718.50
8.0.220.0070.00018.54
8.0.210.0040.00418.50
8.0.200.0030.00518.48
8.0.190.0070.00018.64
8.0.180.0030.00518.51
8.0.170.0040.00418.60
8.0.160.0040.00418.59
8.0.150.0040.00418.55
8.0.140.0030.00518.57
8.0.130.0030.00518.49
8.0.120.0040.00418.49
8.0.110.0050.00318.51
8.0.100.0000.00718.51
8.0.90.0070.00018.46
8.0.80.0000.00717.41
8.0.70.0070.00017.41
8.0.60.0000.00717.41
8.0.50.0030.00317.41
8.0.30.0070.00017.41
8.0.20.0040.00417.41
8.0.10.0070.00017.41

preferences:
99.75 ms | 403 KiB | 5 Q