3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; print $a ?? 'b'; print "\n"; print $a ?: 'b'; print "\n"; print $c ?? 'a'; print "\n"; print $c ?: 'a'; print "\n"; $b = array('a' => null); print $b['a'] ?? 'd'; print "\n"; print $b['a'] ?: 'd'; print "\n"; print $b['c'] ?? 'e'; print "\n"; print $b['c'] ?: 'e'; print "\n";

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.0070.00317.91
8.3.140.0090.00018.41
8.3.130.0040.00418.47
8.3.120.0030.00620.81
8.3.110.0060.00320.94
8.3.100.0070.00324.06
8.3.90.0080.00026.77
8.3.80.0030.00616.63
8.3.70.0130.00817.71
8.3.60.0310.00417.30
8.3.50.0110.00820.12
8.3.40.0160.00718.87
8.3.30.0160.00618.62
8.3.20.0190.00120.00
8.3.10.0170.00622.03
8.3.00.0140.00921.27
8.2.250.0040.00418.40
8.2.240.0060.00318.82
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0030.00618.54
8.2.190.0230.00717.48
8.2.180.0230.00521.95
8.2.170.0180.00618.70
8.2.160.0200.00520.15
8.2.150.0180.00520.94
8.2.140.0160.00421.92
8.2.130.0140.00522.26
8.2.120.0180.00420.69
8.2.110.0160.00620.67
8.2.100.0130.01019.84
8.2.90.0150.00719.92
8.2.80.0130.00519.68
8.2.70.0110.00819.48
8.2.60.0120.00719.60
8.2.50.0150.00419.71
8.2.40.0150.00519.65
8.2.30.0100.00819.74
8.2.20.0120.00519.65
8.2.10.0120.00519.72
8.2.00.0110.00419.41
8.1.300.0090.00016.42
8.1.290.0090.00030.84
8.1.280.0160.00821.95
8.1.270.0120.00322.33
8.1.260.0110.00522.75
8.1.250.0110.00423.24
8.1.240.0130.00420.16
8.1.230.0130.00320.17
8.1.220.0100.00519.54
8.1.210.0110.00519.97
8.1.200.0070.00719.37
8.1.190.0080.00518.76
8.1.180.0110.00319.48
8.1.170.0130.00319.61
8.1.160.0090.00419.73
8.1.150.0060.00720.13
8.1.140.0100.00619.89
8.1.130.0090.00619.13
8.1.120.0120.00219.06
8.1.110.0120.00419.13
8.1.100.0080.00518.82
8.1.90.0080.00518.52
8.1.80.0070.00518.64
8.1.70.0070.00618.60
8.1.60.0090.00618.63
8.1.50.0100.00518.57
8.1.40.0110.00418.51
8.1.30.0090.00518.62
8.1.20.0090.00518.68
8.1.10.0100.00518.24
8.1.00.0110.00518.13
8.0.300.0120.00919.43
8.0.290.0190.00618.99
8.0.280.0170.00719.31
8.0.270.0140.00619.01
8.0.260.0150.00619.01
8.0.250.0130.00518.74
8.0.240.0090.00818.73
8.0.230.0100.00418.37
8.0.220.0110.00418.13
8.0.210.0090.00518.11
8.0.200.0100.00318.17
8.0.190.0090.00418.33
8.0.180.0090.00518.36
8.0.170.0090.00517.99
8.0.160.0080.00518.19
8.0.150.0100.00418.12
8.0.140.0100.00517.94
8.0.130.0100.00417.51
8.0.120.0080.00517.03
8.0.110.0080.00516.98
8.0.100.0080.00517.01
8.0.90.0090.00416.99
8.0.80.0080.00517.02
8.0.70.0080.00417.01
8.0.60.0090.00417.02
8.0.50.0090.00517.03
8.0.30.0080.00617.01
8.0.20.0080.00717.07
8.0.10.0090.00617.10
8.0.00.0080.00717.36
7.4.330.0080.00418.04
7.4.320.0160.00318.53
7.4.300.0150.00318.03
7.4.290.0120.00517.77
7.4.280.0120.00417.74
7.4.270.0080.00517.51
7.4.260.0130.00317.54
7.4.250.0120.00416.75
7.4.240.0110.00316.75
7.4.230.0120.00416.67
7.4.220.0090.00516.71
7.4.210.0090.00516.71
7.4.200.0090.00416.73
7.4.190.0100.00516.71
7.4.180.0100.00416.84
7.4.160.0090.00616.75
7.4.150.0110.00616.70
7.4.140.0080.00716.68
7.4.130.0080.00616.49
7.4.120.0080.00616.51
7.4.110.0100.00516.45
7.4.100.0110.00516.51
7.4.90.0090.00616.48
7.4.80.0100.00616.58
7.4.70.0100.00716.49
7.4.60.0110.00616.49
7.4.50.0090.00716.47
7.4.40.0100.00616.50
7.4.30.0110.00616.54
7.4.20.0110.00616.52
7.4.10.0110.00616.42
7.4.00.0090.00716.38
7.3.330.0150.00417.00
7.3.320.0150.00316.48
7.3.310.0130.00616.46
7.3.300.0130.00316.48
7.3.290.0140.00416.51
7.3.280.0120.00516.47
7.3.270.0120.00616.53
7.3.260.0120.00616.47
7.3.250.0120.00616.46
7.3.240.0120.00616.46
7.3.230.0110.00616.47
7.3.220.0120.00616.38
7.3.210.0120.00516.38
7.3.200.0110.00716.45
7.3.190.0120.00516.34
7.3.180.0120.00516.37
7.3.170.0120.00616.40
7.3.160.0110.00616.37
7.3.150.0120.00716.37
7.3.140.0120.00716.39
7.3.130.0120.00716.31
7.3.120.0110.00716.17
7.3.110.0110.00716.18
7.3.100.0100.00816.10
7.3.90.0110.00716.27
7.3.80.0110.00716.13
7.3.70.0110.00716.10
7.3.60.0100.00716.00
7.3.50.0110.00615.94
7.3.40.0100.00715.99
7.3.30.0100.00715.88
7.3.20.0170.00716.35
7.3.10.0160.00616.27
7.3.00.0160.00616.32
7.2.340.0140.00716.45
7.2.330.0130.00716.39
7.2.320.0140.00716.40
7.2.310.0150.00616.42
7.2.300.0140.00716.41
7.2.290.0140.00716.41
7.2.280.0140.00816.40
7.2.270.0160.00616.39
7.2.260.0120.00816.29
7.2.250.0130.00616.28
7.2.240.0130.00616.25
7.2.230.0130.00616.17
7.2.220.0140.00616.19
7.2.210.0110.00816.10
7.2.200.0120.00816.19
7.2.190.0120.00816.07
7.2.180.0110.00816.03
7.2.170.0110.00816.06
7.2.160.0120.00716.00
7.2.150.0190.00616.58
7.2.140.0180.00716.55
7.2.130.0180.00816.56
7.2.120.0260.00616.49
7.2.110.0300.00716.40
7.2.100.0350.00816.31
7.2.90.0340.00816.27
7.2.80.0350.00716.28
7.2.70.0320.00816.37
7.2.60.0330.00816.31
7.2.50.0350.00816.34
7.2.40.0330.00816.36
7.2.30.0340.00716.33
7.2.20.0310.00716.33
7.2.10.0320.00816.34
7.2.00.0270.00716.46
7.1.330.0150.00615.86
7.1.320.0140.00615.80
7.1.310.0150.00615.72
7.1.300.0140.00615.63
7.1.290.0170.00615.61
7.1.280.0140.00615.56
7.1.270.0160.00715.52
7.1.260.0170.00715.50
7.1.250.0180.00615.37
7.1.240.0210.00615.35
7.1.230.0270.00715.29
7.1.220.0370.00715.22
7.1.210.0350.00615.20
7.1.200.0330.00715.20
7.1.190.0350.00815.21
7.1.180.0370.00715.17
7.1.170.0330.00715.20
7.1.160.0350.00715.19
7.1.150.0320.00715.20
7.1.140.0330.00715.18
7.1.130.0320.00715.17
7.1.120.0330.00715.21
7.1.110.0330.00715.19
7.1.100.0330.00715.16
7.1.90.0330.00615.15
7.1.80.0290.00715.16
7.1.70.0290.00715.16
7.1.60.0280.00717.09
7.1.50.0290.00717.11
7.1.40.0270.00817.06
7.1.30.0260.00817.04
7.1.20.0260.00817.07
7.1.10.0280.00715.19
7.1.00.0240.00815.15
7.0.330.0190.00715.07
7.0.320.0210.00715.05
7.0.310.0340.00714.86
7.0.300.0370.00714.86
7.0.290.0320.00614.88
7.0.280.0330.00714.87
7.0.270.0300.00714.88
7.0.260.0280.00714.90
7.0.250.0310.00614.98
7.0.240.0290.00614.99
7.0.230.0280.00614.96
7.0.220.0320.00614.91
7.0.210.0270.00714.94
7.0.200.0270.00714.95
7.0.190.0260.00614.97
7.0.180.0260.00614.96
7.0.170.0270.00614.99
7.0.160.0250.00814.91
7.0.150.0260.00714.92
7.0.140.0250.00614.91
7.0.130.0250.00714.94
7.0.120.0230.00714.92
7.0.110.0250.00714.92
7.0.100.0240.00714.91
7.0.90.0270.00614.86
7.0.80.0240.00714.88
7.0.70.0250.00814.87
7.0.60.0250.00714.87
7.0.50.0260.00714.89
7.0.40.0280.00714.90
7.0.30.0250.00714.89
7.0.20.0250.00714.90
7.0.10.0260.00614.92
7.0.00.0210.00714.88
5.6.400.0120.00715.17
5.6.390.0120.00815.14
5.6.380.0120.00815.00
5.6.370.0130.00815.01
5.6.360.0120.00815.02
5.6.350.0120.00815.02
5.6.340.0120.00815.01
5.6.330.0120.00814.99
5.6.320.0120.00815.03
5.6.310.0130.00815.02
5.6.300.0130.00714.94
5.6.290.0120.00815.01
5.6.280.0110.00814.98
5.6.270.0120.00714.99
5.6.260.0120.00814.96
5.6.250.0120.00814.95
5.6.240.0120.00814.96
5.6.230.0120.00915.01
5.6.220.0120.00814.98
5.6.210.0150.00614.96
5.6.200.0130.00715.07
5.6.190.0120.00815.04
5.6.180.0130.00715.02
5.6.170.0120.00814.97
5.6.160.0130.00715.00
5.6.150.0130.00815.02
5.6.140.0130.00815.00
5.6.130.0120.00815.00
5.6.120.0120.00715.01
5.6.110.0120.00714.94
5.6.100.0130.00714.97
5.6.90.0120.00714.95
5.6.80.0120.00714.90
5.6.70.0120.00714.94
5.6.60.0120.00714.95
5.6.50.0120.00714.90
5.6.40.0110.00814.91
5.6.30.0120.00714.93
5.6.20.0110.00814.89
5.6.10.0120.00814.93
5.6.00.0120.00714.92
5.5.380.0130.00814.50
5.5.370.0120.00814.47
5.5.360.0120.00814.44
5.5.350.0130.00714.46
5.5.340.0120.00714.43
5.5.330.0130.00714.41
5.5.320.0130.00714.39
5.5.310.0140.00714.44
5.5.300.0140.00714.46
5.5.290.0140.00614.46
5.5.280.0120.00814.46
5.5.270.0120.00714.41
5.5.260.0120.00814.42
5.5.250.0130.00714.45
5.5.240.0120.00714.42
5.5.230.0120.00714.46
5.5.220.0130.00714.44
5.5.210.0120.00614.46
5.5.200.0120.00714.39
5.5.190.0130.00714.38
5.5.180.0130.00714.38
5.5.170.0110.00914.73
5.5.160.0120.00714.37
5.5.150.0140.00614.38
5.5.140.0130.00714.32
5.5.130.0120.00814.33
5.5.120.0120.00714.33
5.5.110.0110.00714.32
5.5.100.0120.00714.41
5.5.90.0120.00714.43
5.5.80.0120.00714.42
5.5.70.0120.00814.43
5.5.60.0130.00714.43
5.5.50.0120.00714.41
5.5.40.0120.00714.40
5.5.30.0120.00714.42
5.5.20.0110.00814.42
5.5.10.0120.00714.37
5.5.00.0120.00714.38

preferences:
63.03 ms | 403 KiB | 5 Q