3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = null; $b = 2; $c = $a ?? $b = 3; echo "$a $b $c"; // 3 3

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.60.0130.00816.70
8.5.50.0110.00616.61
8.5.30.0090.00818.19
8.5.20.0080.00820.09
8.5.10.0130.00616.74
8.5.00.0160.01019.82
8.4.210.0120.00919.40
8.4.180.0140.00822.12
8.4.170.0140.00723.80
8.4.160.0120.00824.00
8.4.150.0080.00616.85
8.4.140.0160.00817.41
8.4.130.0130.00717.75
8.4.120.0130.00720.61
8.4.110.0110.00822.41
8.4.100.0150.00617.81
8.4.90.0140.00517.80
8.4.80.0150.01317.22
8.4.70.0170.00917.78
8.4.60.0440.00617.43
8.4.50.0390.01017.43
8.4.40.0430.00917.43
8.4.30.0390.00317.30
8.4.20.0200.00417.07
8.4.10.0230.00417.68
8.3.300.0080.00920.74
8.3.290.0090.01120.66
8.3.280.0130.00918.18
8.3.270.0100.00916.39
8.3.260.0100.00916.86
8.3.250.0120.00618.69
8.3.240.0080.00516.67
8.3.230.0100.01016.37
8.3.220.0180.00716.97
8.3.210.0150.00816.97
8.3.200.0320.00916.97
8.3.190.0460.00716.97
8.3.180.0220.00616.97
8.3.170.0210.00216.97
8.3.160.0180.00516.97
8.3.150.0180.00516.97
8.3.140.0290.00116.97
8.3.130.0270.00616.97
8.3.120.0360.00516.97
8.3.110.0410.00516.97
8.3.100.0400.00916.97
8.3.90.0400.00916.97
8.3.80.0390.01116.97
8.3.70.0400.01016.97
8.3.60.0370.01316.97
8.3.50.0440.00916.97
8.3.40.0450.00617.41
8.3.30.0370.00617.30
8.3.20.0230.00317.42
8.3.10.0150.00217.21
8.3.00.0140.00517.54
8.2.300.0120.00818.04
8.2.290.0140.00420.18
8.2.280.0290.00616.97
8.2.270.0360.00516.97
8.2.260.0450.00516.97
8.2.250.0370.00716.97
8.2.240.0340.00716.97
8.2.230.0290.01216.97
8.2.220.0360.00516.97
8.2.210.0310.01116.97
8.2.200.0330.00916.97
8.2.190.0250.01016.97
8.2.180.0230.00616.97
8.2.170.0280.00317.66
8.2.160.0340.00917.34
8.2.150.0340.00417.62
8.2.140.0210.00617.59
8.2.130.0350.00617.57
8.2.120.0280.00917.61
8.2.110.0300.01317.69
8.2.100.0340.00317.54
8.2.90.0330.00917.45
8.2.80.0360.01017.64
8.2.70.0490.00417.65
8.2.60.0310.00417.50
8.2.50.0350.00417.26
8.2.40.0340.00917.26
8.2.30.0430.00717.29
8.2.20.0350.00917.63
8.2.10.0380.00617.57
8.2.00.0330.00617.44
8.1.340.0090.01019.82

preferences:
29.87 ms | 845 KiB | 5 Q