3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = 1; $b = $a['c'] ?? 'b'; $b = $a->c ?? 'b'; $a = []; $b = $a->f ?? 'b'; $a = new stdclass(); $b = $a['f'] ?? 'b';

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.70.0060.00717.10
8.5.60.0040.00617.02
8.5.50.0090.00816.90
8.5.30.0130.00617.86
8.5.20.0120.00620.23
8.5.10.0110.00717.09
8.5.00.0130.00723.00
8.4.210.0100.01121.41
8.4.180.0130.00919.60
8.4.170.0170.01123.92
8.4.160.0080.01423.86
8.4.150.0090.00516.92
8.4.140.0120.01217.66
8.4.130.0140.00717.90
8.4.120.0080.01219.95
8.4.110.0350.01217.94
8.4.100.0390.01017.95
8.4.90.0390.01118.13
8.4.80.0420.00617.68
8.4.70.0410.00818.25
8.4.60.0370.00817.70
8.4.50.0390.00917.88
8.4.40.0270.00517.48
8.4.30.0180.00617.71
8.4.20.0230.00317.59
8.4.10.0320.00617.70
8.3.300.0170.00618.45
8.3.290.0090.00318.61
8.3.280.0070.00516.26
8.3.270.0090.01016.46
8.3.260.0040.00416.43
8.3.250.0160.00616.52
8.3.240.0190.00216.59
8.3.230.0170.00516.84
8.3.220.0200.00116.57
8.3.210.0250.00616.55
8.3.200.0220.00516.65
8.3.190.0370.00616.36
8.3.180.0380.00916.72
8.3.170.0340.00716.61
8.3.160.0240.00616.42
8.3.150.0240.00416.46
8.3.140.0170.00616.48
8.3.130.0380.00716.73
8.3.120.0340.01116.45
8.3.110.0380.00716.43
8.3.100.0420.00916.36
8.3.90.0450.00516.44
8.3.80.0410.00916.63
8.3.70.0330.00916.48
8.3.60.0400.01016.54
8.3.50.0430.00716.16
8.3.40.0450.00717.60
8.3.30.0250.00317.49
8.3.20.0280.00817.37
8.3.10.0300.00917.55
8.3.00.0370.00717.37
8.2.300.0120.00818.17
8.2.290.0330.00416.85
8.2.280.0290.00716.75
8.2.270.0220.00316.91
8.2.260.0250.00616.45
8.2.250.0340.00816.77
8.2.240.0220.00416.95
8.2.230.0140.00516.37
8.2.220.0200.00316.67
8.2.210.0160.00416.43
8.2.200.0320.00716.55
8.2.190.0290.00716.57
8.2.180.0290.01016.25
8.2.170.0450.00617.80
8.2.160.0370.00717.78
8.2.150.0260.00517.54
8.2.140.0340.00717.61
8.2.130.0180.00217.56
8.2.120.0320.00817.43
8.2.110.0370.00917.82
8.2.100.0340.00917.37
8.2.90.0350.00917.89
8.2.80.0370.00917.46
8.2.70.0310.00917.67
8.2.60.0270.00917.46
8.2.50.0490.00617.11
8.2.40.0310.00717.48
8.2.30.0420.00817.54
8.2.20.0330.00717.60
8.2.10.0290.01217.55
8.2.00.0320.00817.32
8.1.340.0110.00821.59

preferences:
38.38 ms | 864 KiB | 5 Q