3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { echo "Side effect!\n"; } } const C = new Foo();

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.20.0130.00521.35
8.5.10.0090.00820.51
8.5.00.0130.00919.86
8.4.170.0090.01120.32
8.4.160.0120.01023.90
8.4.150.0030.00014.05
8.4.140.0100.01017.61
8.4.130.0050.00420.45
8.4.120.0100.00920.55
8.4.110.0120.00518.98
8.4.100.0090.01217.45
8.4.90.0100.01020.51
8.4.80.0080.01118.74
8.4.70.0120.00718.92
8.4.60.0080.00920.60
8.4.50.0100.01218.70
8.4.40.0160.00417.37
8.4.30.0100.01020.27
8.4.20.0060.00319.43
8.4.10.0040.00422.23
8.3.300.0110.00920.64
8.3.290.0110.00920.80
8.3.280.0120.00818.39
8.3.270.0110.00916.68
8.3.260.0100.01016.56
8.3.250.0110.00818.69
8.3.240.0110.00816.61
8.3.230.0110.00816.82
8.3.220.0050.00319.11
8.3.210.0110.00716.54
8.3.200.0060.00316.79
8.3.190.0110.00716.88
8.3.180.0100.00818.75
8.3.170.0090.00918.89
8.3.160.0070.00718.59
8.3.150.0140.00418.99
8.3.140.0060.01220.68
8.3.130.0060.00316.79
8.3.120.0000.00920.68
8.3.110.0030.00716.42
8.3.100.0100.00316.27
8.3.50.0090.00016.25
8.2.300.0100.01022.21
8.2.290.0130.00620.35
8.2.280.0070.01218.17
8.2.270.0070.01116.37
8.2.260.0060.00316.87
8.2.250.0070.01116.47
8.2.240.0080.00018.68
8.2.230.0140.00416.12
8.2.220.0060.00316.36
8.1.340.0100.01017.28
8.1.330.0120.00716.53
8.1.320.0080.00215.89
8.1.310.0140.00016.63
8.1.300.0100.01017.78
8.1.60.0040.00417.47
8.1.50.0090.00917.41
8.1.40.0100.01017.37
8.1.30.0130.00617.51
8.1.20.0160.00217.56
8.1.10.0040.01517.41
8.1.00.0120.00817.38
8.0.190.0050.01016.78
8.0.180.0040.01116.81
8.0.170.0040.01116.75
8.0.160.0080.00816.88
8.0.150.0120.00316.71
8.0.140.0090.00516.79
8.0.130.0110.00316.65
8.0.120.0130.00516.75
8.0.110.0070.00716.64
8.0.100.0110.00416.63
8.0.90.0100.00616.74
8.0.80.0140.00216.76
8.0.70.0090.00916.70
8.0.60.0100.00616.84
8.0.50.0160.00016.73
8.0.30.0130.00316.68
8.0.20.0120.00416.77
8.0.10.0150.00016.86
7.4.290.0070.00416.45
7.4.280.0030.01416.41
7.4.270.0180.00016.35
7.4.260.0090.00616.46
7.4.250.0110.00716.36
7.4.240.0170.00016.44
7.4.230.0140.00416.29
7.4.220.0110.00416.34
7.4.210.0150.00016.33
7.4.200.0080.00716.46
7.4.190.0070.00616.41
7.4.180.0110.00016.29
7.4.160.0050.00816.34
7.4.150.0100.00316.38
7.4.140.0050.00516.29
7.4.130.0130.00316.28
7.4.120.0060.00916.34
7.4.110.0120.00316.24
7.4.100.0080.00716.38
7.4.90.0070.00316.25
7.4.80.0120.00016.32
7.4.70.0070.00316.13
7.4.60.0060.00316.23
7.4.50.0090.00016.03
7.4.40.0060.00616.23
7.4.30.0070.00216.27
7.4.20.0090.00216.25
7.4.10.0100.00316.28
7.4.00.0120.00016.33

preferences:
32.02 ms | 403 KiB | 5 Q