3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function titi() { return "ok"; } } $toto = new Test(); echo $toto->titi() ?? "ok"; echo $toto->tata() ?? "ok";

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.0040.01218.39
8.3.50.0110.00416.26
8.3.40.0110.00318.97
8.3.30.0030.01418.67
8.3.20.0080.00020.16
8.3.10.0040.00421.90
8.3.00.0040.00423.70
8.2.180.0040.01618.49
8.2.170.0090.00622.96
8.2.160.0120.00919.47
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.65
8.2.110.0000.01021.07
8.2.100.0090.00317.72
8.2.90.0000.00819.26
8.2.80.0000.00817.97
8.2.70.0080.00817.25
8.2.60.0000.00918.05
8.2.50.0020.00518.07
8.2.40.0120.00019.82
8.2.30.0040.00418.05
8.2.20.0000.00818.05
8.2.10.0020.00517.94
8.2.00.0000.00819.78
8.1.280.0130.00325.92
8.1.270.0070.00022.07
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00020.91
8.1.230.0080.00322.08
8.1.220.0050.00317.77
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0090.00017.00
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0080.00018.73
8.1.150.0030.00319.98
8.1.140.0050.00319.11
8.1.130.0000.00719.00
8.1.120.0040.00417.43
8.1.110.0040.00417.30
8.1.100.0040.00417.36
8.1.90.0000.00717.33
8.1.80.0050.00317.35
8.1.70.0040.00417.45
8.1.60.0080.00017.50
8.1.50.0040.00417.41
8.1.40.0000.00917.41
8.1.30.0030.00717.55
8.1.20.0080.00017.68
8.1.10.0040.00417.58
8.1.00.0040.00417.43
8.0.300.0030.00618.82
8.0.290.0000.00816.74
8.0.280.0030.00318.39
8.0.270.0040.00417.18
8.0.260.0000.00818.49
8.0.250.0030.00316.98
8.0.240.0040.00416.99
8.0.230.0070.00016.78
8.0.220.0000.00816.78
8.0.210.0000.00716.84
8.0.200.0060.00016.96
8.0.190.0080.00016.83
8.0.180.0000.00716.86
8.0.170.0000.00716.82
8.0.160.0000.00816.89
8.0.150.0040.00416.79
8.0.140.0030.00616.87
8.0.130.0000.00513.35
8.0.120.0000.00716.76
8.0.110.0000.00816.80
8.0.100.0030.00516.92
8.0.90.0040.00416.89
8.0.80.0030.01316.83
8.0.70.0060.00316.88
8.0.60.0040.00416.66
8.0.50.0040.00416.85
8.0.30.0100.01017.06
8.0.20.0110.01117.40
8.0.10.0040.00416.83
8.0.00.0110.01116.67
7.4.330.0000.00515.55
7.4.320.0000.00716.43
7.4.300.0030.00316.49
7.4.290.0030.00316.57
7.4.280.0040.00416.61
7.4.270.0040.00416.61
7.4.260.0000.00716.48
7.4.250.0030.00316.32
7.4.240.0040.00416.59
7.4.230.0030.00316.29
7.4.220.0110.00816.65
7.4.210.0110.00316.45
7.4.200.0000.00816.52
7.4.160.0100.01116.49
7.4.150.0120.00617.40
7.4.140.0150.00917.86
7.4.130.0140.00316.48
7.4.120.0140.00516.44
7.4.110.0060.01616.36
7.4.100.0130.00616.49
7.4.90.0130.00316.47
7.4.80.0100.01219.39
7.4.70.0100.01316.43
7.4.60.0070.01016.21
7.4.50.0110.00716.61
7.4.40.0060.01516.50
7.4.30.0080.00816.35
7.4.00.0120.00314.92
7.3.330.0060.00013.18
7.3.320.0020.00213.40
7.3.310.0000.00916.18
7.3.300.0000.00716.30
7.3.290.0100.00716.35
7.3.280.0130.00416.38
7.3.270.0100.01317.40
7.3.260.0070.01116.36
7.3.250.0110.01016.59
7.3.240.0070.01316.42
7.3.230.0100.00716.34
7.3.210.0090.00916.31
7.3.200.0070.01016.67
7.3.190.0090.00616.41
7.3.180.0040.01216.38
7.3.170.0100.01016.28
7.3.160.0030.01216.28
7.2.330.0050.01116.74
7.2.320.0030.01316.30
7.2.310.0150.00616.24
7.2.300.0060.01116.79
7.2.290.0130.00316.78
7.2.60.0160.00816.82
7.1.200.0060.00615.43
7.1.120.0310.00716.31
7.1.110.0310.00715.77
7.1.100.0380.00916.09
7.1.90.0330.00715.96
7.1.80.0620.01316.29
7.1.70.0530.00715.07
7.1.60.0500.01033.00
7.1.50.0550.01533.00
7.1.40.0490.01632.18
7.1.30.0750.00732.50
7.1.20.0450.01432.48
7.1.10.0350.01314.50
7.1.00.0550.01414.66
7.0.260.0310.01016.17
7.0.250.0350.00615.89
7.0.240.0550.01415.70
7.0.230.0340.00515.80
7.0.220.0260.01015.69
7.0.210.0590.01314.52
7.0.200.0420.00614.65
7.0.190.0300.01014.98
7.0.180.0330.00714.35
7.0.170.0340.00614.49
7.0.160.0350.00614.31
7.0.150.0530.01714.34
7.0.140.0420.01314.28
7.0.130.0370.01014.88
7.0.120.0340.00814.73
7.0.110.0380.00614.38
7.0.100.0360.01014.55
7.0.90.1240.00714.33
7.0.80.0260.01314.55
7.0.70.0380.00614.32
7.0.60.0660.00714.15
7.0.50.0400.00714.64
7.0.40.0460.00614.53
7.0.30.0370.00914.67
7.0.20.0390.01014.70
7.0.10.0320.00614.29
7.0.00.0330.00714.43

preferences:
57.88 ms | 401 KiB | 5 Q