3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = NULL; echo 'foo ' . $foo ?? 'foo' . ' bar'; echo "\n"; echo 'correct: foo ' . ($foo ?? 'foo') . ' bar';

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.4.10.0030.00622.09
8.3.140.0100.00719.15
8.3.130.0050.00518.32
8.3.120.0030.00520.82
8.3.110.0070.00720.94
8.3.100.0050.00316.41
8.3.90.0040.00426.77
8.3.80.0070.00318.40
8.3.70.0060.01216.25
8.3.60.0070.01418.30
8.3.50.0100.00716.43
8.3.40.0040.01121.86
8.3.30.0120.00318.41
8.3.20.0070.01024.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.260.0050.00318.27
8.2.250.0070.01118.36
8.2.240.0000.00918.98
8.2.230.0050.00322.58
8.2.220.0130.00337.54
8.2.210.0100.00726.77
8.2.200.0080.00016.50
8.2.190.0090.00616.63
8.2.180.0070.00716.75
8.2.170.0110.00718.71
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0080.00019.48
8.2.110.0070.00421.19
8.2.100.0040.00817.72
8.2.90.0050.00318.14
8.2.80.0030.00617.97
8.2.70.0080.00017.38
8.2.60.0080.01017.25
8.2.50.0160.00317.49
8.2.40.0060.01017.38
8.2.30.0090.00917.35
8.2.20.0080.01117.13
8.2.10.0100.00717.38
8.2.00.0170.00017.35
8.1.310.0040.00715.96
8.1.300.0080.00017.82
8.1.290.0120.00030.84
8.1.280.0040.01125.92
8.1.270.0000.00724.66
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00920.81
8.1.230.0040.00820.96
8.1.220.0000.00817.79
8.1.210.0090.00018.80
8.1.200.0000.00817.38
8.1.190.0030.00517.35
8.1.180.0080.00816.85
8.1.170.0140.00417.13
8.1.160.0180.00017.13
8.1.150.0160.00017.10
8.1.140.0090.00917.23
8.1.130.0130.00317.00
8.1.120.0140.00317.13
8.1.110.0100.00717.25
8.1.100.0110.00517.37
8.1.90.0080.00819.05
8.1.80.0080.00817.23
8.1.70.0110.00517.23
8.1.60.0130.00617.50
8.1.50.0090.00917.38
8.1.40.0180.00017.38
8.1.30.0150.00417.13
8.1.20.0130.00517.25
8.1.10.0120.00617.35
8.1.00.0140.00516.63
8.0.300.0070.00019.98
8.0.290.0040.00416.75
8.0.280.0090.00916.52
8.0.270.0120.00616.63
8.0.260.0140.00316.52
8.0.250.0170.00016.75
8.0.240.0130.00318.25
8.0.230.0130.00416.52
8.0.220.0110.00416.52
8.0.210.0140.00216.52
8.0.200.0130.00316.52
8.0.190.0160.00016.63
8.0.180.0180.00016.52
8.0.170.0050.01016.52
8.0.160.0070.01016.75
8.0.150.0070.01116.52
8.0.140.0130.00416.52
8.0.130.0100.00716.52
8.0.120.0070.01016.52
8.0.110.0090.00916.52
8.0.100.0080.00816.59
8.0.90.0150.00316.52
8.0.80.0140.00716.52
8.0.70.0180.00016.63
8.0.60.0130.00616.52
8.0.50.0040.01316.63
8.0.30.0080.00816.52
8.0.20.0140.00616.52
8.0.10.0070.01016.62

preferences:
32.63 ms | 403 KiB | 5 Q