3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = [ ]; $ternary = $val['exists'] ?: 'no-tern'; $nullCo = $val['exists'] ?? 'no-null'; var_dump($ternary, $nullCo);

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.3.60.0150.00016.75
8.3.50.0070.01118.17
8.3.40.0170.00718.70
8.3.30.0150.00618.72
8.3.20.0070.00020.25
8.3.10.0040.00423.65
8.3.00.0090.00019.14
8.2.180.0180.00316.63
8.2.170.0120.00622.96
8.2.160.0030.01022.21
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0090.00317.75
8.2.120.0000.00826.35
8.2.110.0060.00322.20
8.2.100.0070.00418.05
8.2.90.0080.00019.22
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0050.00217.91
8.2.50.0080.00018.07
8.2.40.0000.00719.41
8.2.30.0070.00020.71
8.2.20.0030.00617.68
8.2.10.0070.00018.08
8.2.00.0000.00718.09
8.1.280.0110.00425.92
8.1.270.0050.00322.06
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0090.00022.46
8.1.230.0060.00617.78
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0070.00018.10
8.1.170.0000.00720.06
8.1.160.0040.00422.01
8.1.150.0000.00818.88
8.1.140.0050.00319.61
8.1.130.0030.00517.67
8.1.120.0040.00417.48
8.1.110.0080.00017.45
8.1.100.0000.00717.41
8.1.90.0000.00717.48
8.1.80.0000.00817.34
8.1.70.0030.00317.33
8.1.60.0080.00317.45
8.1.50.0030.00517.59
8.1.40.0050.00317.49
8.1.30.0000.00817.66
8.1.20.0000.00717.67
8.1.10.0000.00717.36
8.1.00.0080.00017.45
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.45
8.0.270.0000.00717.23
8.0.260.0060.00017.16
8.0.250.0000.00816.95
8.0.240.0040.00416.88
8.0.230.0000.00716.96
8.0.220.0000.00716.86
8.0.210.0000.00716.91
8.0.200.0040.00416.89
8.0.190.0070.00017.04
8.0.180.0060.00316.97
8.0.170.0000.00816.86
8.0.160.0030.00516.99
8.0.150.0070.00016.95
8.0.140.0070.00016.84
8.0.130.0060.00013.36
8.0.120.0040.00416.91
8.0.110.0040.00416.86
8.0.100.0000.00716.96
8.0.90.0030.00516.77
8.0.80.0060.01016.89
8.0.70.0080.00016.90
8.0.60.0050.00317.01
8.0.50.0070.00016.94
8.0.30.0090.00817.09
8.0.20.0110.00817.40
8.0.10.0070.00016.91
8.0.00.0100.00916.82
7.4.330.0030.00316.79
7.4.320.0000.00616.62
7.4.300.0060.00016.53
7.4.290.0000.00716.57
7.4.280.0040.00416.50
7.4.270.0030.00316.39
7.4.260.0000.00716.41
7.4.250.0040.00416.31
7.4.240.0030.00516.59
7.4.230.0030.00316.42
7.4.220.0090.00916.62
7.4.210.0090.00916.50
7.4.200.0000.00716.62
7.4.160.0120.00316.66
7.4.150.0060.01217.40
7.4.140.0130.00817.86
7.4.130.0130.00616.53
7.4.120.0120.00716.52
7.4.110.0060.01316.45
7.4.100.0090.00816.61
7.4.90.0120.00616.57
7.4.80.0070.01019.39
7.4.70.0090.01216.66
7.4.60.0080.00816.44
7.4.50.0040.01116.58
7.4.40.0030.01616.63
7.4.30.0080.00916.71
7.4.00.0030.01314.96
7.3.330.0000.00613.01
7.3.320.0000.00513.24
7.3.310.0050.00316.28
7.3.300.0000.00716.29
7.3.290.0080.00816.31
7.3.280.0080.01016.27
7.3.270.0060.01017.40
7.3.260.0090.00916.35
7.3.250.0060.00916.29
7.3.240.0080.00816.38
7.3.230.0060.01116.39
7.3.210.0030.01416.52
7.3.200.0100.00716.38
7.3.190.0070.01016.34
7.3.180.0120.00316.44
7.3.170.0030.01416.27
7.3.160.0120.00416.36
7.2.330.0040.01216.50
7.2.320.0130.00616.39
7.2.310.0140.00316.52
7.2.300.0080.00816.59
7.2.290.0060.01616.20
7.2.60.0030.01216.75
7.2.00.0070.00319.42
7.1.200.0090.00315.59
7.1.100.0000.01317.88
7.1.70.0050.00217.20
7.1.60.0170.01319.48
7.1.50.0040.01116.86
7.1.00.0030.07722.29
7.0.200.0340.00314.30
7.0.60.0100.07719.91
7.0.50.0030.08317.78
7.0.40.0170.05320.05
7.0.30.0270.08320.13
7.0.20.0230.08720.00
7.0.10.0070.04320.16
7.0.00.0070.09020.10
5.6.280.0000.04020.81
5.6.210.0030.09020.50
5.6.200.0100.07018.18
5.6.190.0070.05720.64
5.6.180.0200.03720.64
5.6.170.0470.07020.55
5.6.160.0070.08020.53
5.6.150.0100.05018.28
5.6.140.0100.07718.11
5.6.130.0030.07318.28
5.6.120.0030.09321.13
5.6.110.0030.04320.97
5.6.100.0100.04320.95
5.6.90.0070.08721.01
5.6.80.0070.07020.32
5.5.350.4100.03720.52
5.5.340.0070.03718.02
5.5.330.0170.04020.27
5.5.320.0270.08020.30
5.5.310.0300.07720.34
5.5.300.0100.04718.08
5.5.290.0000.05717.98
5.5.280.0070.08720.77
5.5.270.0000.09020.88
5.5.260.0030.08320.73
5.5.250.0100.07720.78
5.5.240.0200.07320.15

preferences:
54.46 ms | 400 KiB | 5 Q