3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { private $i = 0; public function __construct() { return ++$this->i; } } echo (new a)->__construct();

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.0070.00718.43
8.3.50.0100.01016.38
8.3.40.0100.00718.96
8.3.30.0040.01118.69
8.3.20.0080.00021.73
8.3.10.0050.00223.66
8.3.00.0080.00021.25
8.2.180.0110.00416.52
8.2.170.0070.00722.96
8.2.160.0100.00322.09
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00020.27
8.2.120.0080.00026.35
8.2.110.0060.00321.18
8.2.100.0070.00417.91
8.2.90.0080.00018.22
8.2.80.0060.00318.01
8.2.70.0000.00818.05
8.2.60.0000.00817.48
8.2.50.0040.00418.10
8.2.40.0040.00422.20
8.2.30.0030.00319.41
8.2.20.0080.00018.07
8.2.10.0040.00417.73
8.2.00.0000.00717.86
8.1.280.0100.00725.92
8.1.270.0070.00022.14
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0040.00422.59
8.1.230.0000.01122.75
8.1.220.0060.00317.76
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0040.00416.88
8.1.180.0000.00918.10
8.1.170.0040.00418.38
8.1.160.0050.00318.73
8.1.150.0040.00420.25
8.1.140.0000.00717.64
8.1.130.0000.00718.93
8.1.120.0050.00217.44
8.1.110.0000.00817.39
8.1.100.0000.00817.40
8.1.90.0100.00017.25
8.1.80.0000.00817.39
8.1.70.0030.00317.36
8.1.60.0030.00717.59
8.1.50.0000.00917.55
8.1.40.0060.00317.55
8.1.30.0000.00717.61
8.1.20.0080.00017.57
8.1.10.0070.00017.43
8.1.00.0110.00017.52
8.0.300.0000.00719.88
8.0.290.0040.00416.75
8.0.280.0030.00318.35
8.0.270.0050.00217.31
8.0.260.0070.00016.80
8.0.250.0030.00316.94
8.0.240.0040.00416.96
8.0.230.0030.00316.88
8.0.220.0030.00316.86
8.0.210.0030.00316.83
8.0.200.0030.00316.75
8.0.190.0000.00716.77
8.0.180.0070.00016.73
8.0.170.0000.00816.85
8.0.160.0000.00716.84
8.0.150.0050.00316.81
8.0.140.0050.00216.67
8.0.130.0000.00513.33
8.0.120.0030.00516.66
8.0.110.0000.00716.73
8.0.100.0040.00416.73
8.0.90.0040.00316.83
8.0.80.0070.00716.75
8.0.70.0040.00416.62
8.0.60.0000.00816.81
8.0.50.0000.00716.70
8.0.30.0080.01117.03
8.0.20.0100.00917.40
8.0.10.0050.00216.88
8.0.00.0100.00716.95
7.4.330.0050.00015.55
7.4.320.0060.00016.59
7.4.300.0030.00316.45
7.4.290.0070.00016.41
7.4.280.0050.00516.60
7.4.270.0040.00716.51
7.4.260.0050.00316.50
7.4.250.0040.00416.41
7.4.240.0080.00016.46
7.4.230.0030.00316.42
7.4.220.0000.00816.43
7.4.210.0060.01216.53
7.4.200.0000.00716.71
7.4.160.0130.00416.48
7.4.140.0110.01117.86
7.4.130.0070.01016.52
7.4.120.0060.01116.51
7.4.110.0000.01816.54
7.4.100.0030.01316.49
7.4.90.0030.01516.46
7.4.80.0140.00719.39
7.4.70.0030.00616.35
7.4.60.0100.00616.50
7.4.50.0090.00916.17
7.4.40.0060.00916.26
7.4.00.0060.01015.18
7.3.330.0030.00313.05
7.3.320.0000.00613.23
7.3.310.0000.00716.12
7.3.300.0070.00016.30
7.3.290.0080.00616.24
7.3.280.0060.01116.20
7.3.260.0130.00616.22
7.3.250.0090.00716.34
7.3.240.0050.01116.38
7.3.230.0160.00316.50
7.3.210.0040.01416.46
7.3.200.0050.01116.28
7.3.190.0090.00616.25
7.3.180.0040.01216.38
7.3.170.0040.01216.30
7.3.160.0110.01116.40
7.2.330.0060.01116.25
7.2.320.0170.00616.63
7.2.310.0130.00316.54
7.2.300.0030.01416.31
7.2.290.0130.00616.71
7.2.60.0030.00716.52
7.2.30.0100.01018.04
7.2.20.0120.00917.72
7.2.10.0100.01017.49
7.2.00.0070.01217.73
7.1.200.0040.01115.55
7.1.150.0090.01016.70
7.1.140.0110.00816.31
7.1.130.0090.01016.50
7.1.120.0110.00916.36
7.1.110.0080.01116.04
7.1.100.0120.00715.87
7.1.90.0120.00715.93
7.1.80.0100.00815.66
7.1.70.0110.01015.01
7.1.60.0240.01633.07
7.1.50.0280.01132.95
7.1.40.0290.01232.51
7.1.30.0280.01432.44
7.1.20.0290.01232.47
7.1.10.0140.01114.73
7.1.00.0110.01214.63

preferences:
63.4 ms | 400 KiB | 5 Q