3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { $a = new class { function __destruct() { echo "Destructing\n"; } }; echo "Before\n"; global $a; echo "After\n"; } 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.90.0080.00916.91
8.5.80.0050.00416.83
8.5.70.0080.00616.85
8.5.60.0100.00616.70
8.5.50.0070.00816.61
8.5.30.0110.00819.36
8.5.20.0110.00720.22
8.5.10.0060.01116.66
8.5.00.0120.01022.99
8.4.240.0120.00919.34
8.4.230.0100.00619.41
8.4.220.0030.00621.40
8.4.210.0140.00919.46
8.4.180.0110.01219.66
8.4.170.0140.00623.90
8.4.160.0130.00922.98
8.4.150.0080.00516.91
8.4.140.0360.01217.07
8.4.130.0400.00717.29
8.4.120.0330.00917.83
8.4.110.0390.01017.62
8.4.100.0340.01117.68
8.4.90.0370.01117.86
8.4.80.0370.01017.68
8.4.70.0420.00817.89
8.4.60.0420.00917.71
8.4.50.0340.00917.84
8.4.40.0410.00917.57
8.4.30.0370.01217.68
8.4.20.0420.01017.73
8.4.10.0400.01217.09
8.3.330.0060.00618.29
8.3.320.0130.00718.38
8.3.310.0130.00618.34
8.3.300.0130.00920.79
8.3.290.0110.01020.81
8.3.280.0130.00820.80
8.3.270.0350.00616.41
8.3.260.0420.01016.29
8.3.250.0370.00616.45
8.3.240.0330.01116.48
8.3.230.0310.01216.39
8.3.220.0340.00716.43
8.3.210.0310.01116.34
8.3.200.0330.00916.57
8.3.190.0380.00616.56
8.3.180.0320.01216.36
8.3.170.0370.01216.71
8.3.160.0370.00816.43
8.3.150.0320.01116.52
8.3.140.0360.00816.45
8.3.130.0310.01016.36
8.3.120.0360.01116.53
8.3.110.0290.01116.36
8.3.100.0330.01116.49
8.3.90.0350.01016.56
8.3.80.0340.01116.55
8.3.70.0360.00916.44
8.3.60.0390.00616.47
8.3.50.0400.00816.29
8.3.40.0370.01217.05
8.3.30.0310.00617.45
8.3.20.0310.00617.26
8.3.10.0260.01017.30
8.3.00.0190.00717.36
8.2.320.0110.00818.00
8.2.310.0150.00618.09
8.2.300.0110.01020.23
8.2.290.0290.00816.32
8.2.280.0270.01016.27
8.2.270.0300.00816.14
8.2.260.0270.01116.59
8.2.250.0300.00716.15
8.2.240.0290.00916.38
8.2.230.0280.01116.34
8.2.220.0290.01116.61
8.2.210.0320.00716.14
8.2.200.0310.00816.45
8.2.190.0330.00816.25
8.2.180.0270.01216.45
8.2.170.0310.00917.73
8.2.160.0350.00817.33
8.2.150.0340.00917.63
8.2.140.0350.00817.11
8.2.130.0290.00917.34
8.2.120.0310.00817.66
8.2.110.0300.00817.35
8.2.100.0350.00617.38
8.2.90.0310.00717.41
8.2.80.0300.00817.40
8.2.70.0280.01217.61
8.2.60.0330.00917.27
8.2.50.0330.00517.52
8.2.40.0280.00917.61
8.2.30.0300.00717.19
8.2.20.0270.01017.38
8.2.10.0300.00917.21
8.2.00.0400.00617.29
8.1.340.0090.00917.41

preferences:
63.12 ms | 891 KiB | 5 Q