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.1.70.0030.00317.49
8.1.60.0000.00917.59
8.1.50.0030.00517.49
8.1.40.0040.00417.45
8.1.30.0020.00617.63
8.1.20.0040.00317.60
8.1.10.0080.00417.54
8.1.00.0090.00517.49
8.0.200.0030.00317.06
8.0.190.0050.00317.07
8.0.180.0070.00017.04
8.0.170.0020.00616.93
8.0.160.0010.00616.93
8.0.150.0060.00216.81
8.0.140.0050.00316.93
8.0.130.0070.00416.45
8.0.120.0080.00315.90
8.0.110.0070.00515.58
8.0.100.0070.00415.69
8.0.90.0060.00415.86
8.0.80.0070.00616.08
8.0.70.0080.00415.85
8.0.60.0090.00415.84
8.0.50.0080.00415.87
8.0.30.0100.00516.29
8.0.20.0080.00816.53
8.0.10.0070.00716.43
8.0.00.0070.00816.55
7.4.300.0040.00416.64
7.4.290.0070.00616.50
7.4.280.0040.00416.63
7.4.270.0040.00516.54
7.4.260.0100.00316.44
7.4.250.0070.00615.30
7.4.240.0080.00415.45
7.4.230.0090.00315.42
7.4.220.0060.00615.70
7.4.210.0080.00515.70
7.4.200.0070.00415.53
7.4.190.0060.00615.64
7.4.180.0080.00415.67
7.4.160.0080.00616.03
7.4.150.0100.00716.02
7.4.140.0070.00816.06
7.4.130.0070.00715.92
7.4.120.0070.00815.96
7.4.110.0080.00615.85
7.4.100.0100.00615.96
7.4.90.0080.00715.94
7.4.80.0090.00716.09
7.4.70.0090.00715.97
7.4.60.0100.00615.96
7.4.50.0090.00815.96
7.4.40.0100.00615.98
7.4.30.0090.00615.99
7.4.20.0110.00616.01
7.4.10.0100.00715.96
7.4.00.0080.00815.91
7.3.330.0160.00315.67
7.3.320.0130.00214.89
7.3.310.0130.00515.11
7.3.300.0100.00515.20
7.3.290.0120.00515.56
7.3.280.0110.00615.91
7.3.270.0100.00615.92
7.3.260.0090.00615.84
7.3.250.0100.00715.93
7.3.240.0100.00615.91
7.3.230.0090.00715.88
7.3.220.0110.00615.81
7.3.210.0100.00615.81
7.3.200.0090.00715.96
7.3.190.0100.00615.82
7.3.180.0100.00615.83
7.3.170.0100.00615.85
7.3.160.0090.00715.86
7.3.150.0080.00815.82
7.3.140.0100.00715.88
7.3.130.0100.00715.85
7.3.120.0100.00715.71
7.3.110.0100.00715.73
7.3.100.0080.00815.64
7.3.90.0090.00715.81
7.3.80.0090.00715.70
7.3.70.0100.00815.65
7.3.60.0090.00815.59
7.3.50.0100.00715.53
7.3.40.0090.00815.58
7.3.30.0090.00815.50
7.3.20.0170.00716.00
7.3.10.0160.00715.93
7.3.00.0160.00615.97
7.2.340.0140.00815.85
7.2.330.0130.00815.85
7.2.320.0140.00715.88
7.2.310.0150.00715.90
7.2.300.0140.00815.90
7.2.290.0140.00815.89
7.2.280.0130.00915.87
7.2.270.0160.00715.88
7.2.260.0120.00815.84
7.2.250.0130.00715.84
7.2.240.0130.00715.81
7.2.230.0120.00715.74
7.2.220.0140.00615.76
7.2.210.0100.00915.68
7.2.200.0120.00815.77
7.2.190.0110.00815.67
7.2.180.0110.00815.64
7.2.170.0110.00815.66
7.2.160.0120.00815.61
7.2.150.0190.00616.20
7.2.140.0190.00716.21
7.2.130.0190.00816.20
7.2.120.0280.00716.14
7.2.110.0330.00816.05
7.2.100.0380.00815.96
7.2.90.0370.00915.94
7.2.80.0380.00715.93
7.2.70.0350.00916.04
7.2.60.0360.00815.98
7.2.50.0380.00816.00
7.2.40.0360.00816.02
7.2.30.0370.00715.99
7.2.20.0340.00816.00
7.2.10.0340.00815.99
7.2.00.0290.00816.08
7.1.330.0150.00715.41
7.1.320.0130.00715.33
7.1.310.0160.00715.28
7.1.300.0140.00615.21
7.1.290.0170.00615.19
7.1.280.0130.00715.16
7.1.270.0170.00815.11
7.1.260.0170.00715.10
7.1.250.0190.00714.98
7.1.240.0220.00714.95
7.1.230.0300.00814.91
7.1.220.0400.00814.85
7.1.210.0380.00714.82
7.1.200.0360.00814.83
7.1.190.0390.00914.83
7.1.180.0410.00714.81
7.1.170.0360.00714.80
7.1.160.0380.00814.79
7.1.150.0360.00714.83
7.1.140.0370.00714.82
7.1.130.0350.00714.80
7.1.120.0360.00714.84
7.1.110.0360.00714.82
7.1.100.0360.00714.79
7.1.90.0350.00614.79
7.1.80.0320.00714.79
7.1.70.0310.00714.81
7.1.60.0300.00717.03
7.1.50.0300.00817.04
7.1.40.0300.00816.99
7.1.30.0280.00816.97
7.1.20.0280.00816.99
7.1.10.0300.00714.82
7.1.00.0260.00914.79
7.0.330.0200.00814.67
7.0.320.0230.00714.63
7.0.310.0370.00714.48
7.0.300.0400.00714.46
7.0.290.0340.00614.49
7.0.280.0360.00714.48
7.0.270.0330.00714.50
7.0.260.0300.00714.51
7.0.250.0340.00714.60
7.0.240.0320.00614.60
7.0.230.0310.00714.57
7.0.220.0350.00614.52
7.0.210.0290.00714.55
7.0.200.0290.00714.57
7.0.190.0280.00614.59
7.0.180.0270.00714.57
7.0.170.0280.00614.61
7.0.160.0270.00814.52
7.0.150.0270.00714.53
7.0.140.0270.00714.51
7.0.130.0270.00814.55
7.0.120.0250.00714.52
7.0.110.0260.00714.52
7.0.100.0260.00714.51
7.0.90.0290.00614.47
7.0.80.0250.00714.49
7.0.70.0270.00814.48
7.0.60.0260.00714.48
7.0.50.0280.00714.51
7.0.40.0300.00714.51
7.0.30.0280.00814.51
7.0.20.0270.00714.52
7.0.10.0280.00714.53
7.0.00.0230.00814.49
5.6.400.0120.00814.73
5.6.390.0120.00814.70
5.6.380.0120.00814.61
5.6.370.0130.00814.62
5.6.360.0130.00814.63
5.6.350.0120.00914.64
5.6.340.0130.00814.62
5.6.330.0120.00814.60
5.6.320.0120.00814.64
5.6.310.0130.00814.63
5.6.300.0130.00714.55
5.6.290.0120.00814.63
5.6.280.0120.00814.59
5.6.270.0120.00814.60
5.6.260.0120.00914.57
5.6.250.0120.00814.57
5.6.240.0120.00914.57
5.6.230.0120.00914.62
5.6.220.0120.00814.60
5.6.210.0150.00714.57
5.6.200.0130.00814.69
5.6.190.0130.00814.66
5.6.180.0130.00714.63
5.6.170.0120.00814.58
5.6.160.0130.00814.60
5.6.150.0130.00814.62
5.6.140.0130.00914.61
5.6.130.0120.00914.61
5.6.120.0130.00814.62
5.6.110.0120.00814.56
5.6.100.0130.00814.58
5.6.90.0120.00814.56
5.6.80.0120.00814.51
5.6.70.0120.00814.54
5.6.60.0130.00714.55
5.6.50.0120.00714.50
5.6.40.0110.00914.51
5.6.30.0120.00814.53
5.6.20.0120.00814.50
5.6.10.0120.00914.54
5.6.00.0120.00814.53
5.5.380.0130.00814.04
5.5.370.0120.00814.00
5.5.360.0120.00913.98
5.5.350.0130.00714.00
5.5.340.0130.00813.96
5.5.330.0130.00813.95
5.5.320.0130.00713.93
5.5.310.0130.00713.98
5.5.300.0140.00714.01
5.5.290.0140.00714.00
5.5.280.0110.00814.01
5.5.270.0120.00813.95
5.5.260.0120.00813.96
5.5.250.0120.00713.98
5.5.240.0120.00713.95
5.5.230.0120.00813.99
5.5.220.0120.00713.96
5.5.210.0120.00713.99
5.5.200.0120.00713.94
5.5.190.0120.00713.92
5.5.180.0130.00713.92
5.5.170.0110.01014.33
5.5.160.0120.00813.91
5.5.150.0140.00713.92
5.5.140.0130.00713.86
5.5.130.0120.00813.87
5.5.120.0120.00713.87
5.5.110.0120.00813.85
5.5.100.0120.00813.95
5.5.90.0120.00813.96
5.5.80.0120.00713.95
5.5.70.0120.00813.95
5.5.60.0130.00713.96
5.5.50.0120.00713.93
5.5.40.0120.00813.93
5.5.30.0120.00713.94
5.5.20.0110.00813.95
5.5.10.0120.00713.90
5.5.00.0120.00713.90
5.4.450.0100.00312.43
5.4.440.0110.00312.17
5.4.430.0130.00012.23
5.4.420.0140.00012.42
5.4.410.0100.00312.31
5.4.400.0110.00312.17
5.4.390.0110.00212.29
5.4.380.0050.00812.28
5.4.370.0140.00012.51
5.4.360.0080.00512.28
5.4.350.0110.00212.15
5.4.340.0090.00412.51
5.4.330.0130.00012.51
5.4.320.0130.00012.19
5.4.310.0090.00612.31
5.4.300.0070.00712.57
5.4.290.0130.00012.57
5.4.280.0080.00512.42
5.4.270.0140.00012.57
5.4.260.0090.00512.17
5.4.250.0050.00812.37
5.4.240.0090.00512.28
5.4.230.0090.00312.09
5.4.220.0080.00512.18
5.4.210.0140.00012.09
5.4.200.0110.00411.98
5.4.190.0080.00811.95
5.4.180.0140.00312.17
5.4.170.0140.00012.20
5.4.160.0100.00312.15
5.4.150.0130.00012.15
5.4.140.0070.00712.50
5.4.130.0030.00912.34
5.4.120.0120.00312.21
5.4.110.0130.00012.23
5.4.100.0120.00212.55
5.4.90.0080.00412.20
5.4.80.0120.00012.46
5.4.70.0080.00512.48
5.4.60.0130.00012.41
5.4.50.0090.00312.09
5.4.40.0100.00312.34
5.4.30.0080.00512.18
5.4.20.0110.00312.56
5.4.10.0070.00712.17
5.4.00.0040.00912.25
5.3.290.0140.00012.89
5.3.280.0090.00512.79
5.3.270.0120.00312.79
5.3.260.0070.00712.89
5.3.250.0140.00012.82
5.3.240.0140.00012.75
5.3.230.0090.00512.75
5.3.220.0130.00012.82
5.3.210.0040.00912.59
5.3.200.0110.00312.80
5.3.190.0090.00512.88
5.3.180.0100.00312.66
5.3.170.0100.00312.62
5.3.160.0140.00412.79
5.3.150.0080.00512.95
5.3.140.0100.00312.61
5.3.130.0140.00012.59
5.3.120.0080.00512.93
5.3.110.0130.00012.88
5.3.100.0150.00012.93
5.3.90.0080.00412.64
5.3.80.0090.00412.52
5.3.70.0100.00312.62
5.3.60.0080.00512.58
5.3.50.0120.00012.61
5.3.40.0110.00312.63
5.3.30.0140.00012.85
5.3.20.0000.01312.47
5.3.10.0120.00012.57
5.3.00.0120.00012.56
5.2.170.0080.00311.74
5.2.160.0060.00611.61
5.2.150.0110.00011.57
5.2.140.0070.00311.82
5.2.130.0040.00611.59
5.2.120.0080.00311.64
5.2.110.0060.00611.58
5.2.100.0060.00611.82
5.2.90.0080.00311.64
5.2.80.0070.00511.70
5.2.70.0070.00411.79
5.2.60.0070.00411.43
5.2.50.0110.00011.82
5.2.40.0040.00711.80
5.2.30.0060.00311.52
5.2.20.0080.00311.49
5.2.10.0080.00311.35
5.2.00.0070.00211.46
5.1.60.0090.00010.65
5.1.50.0030.00710.64
5.1.40.0060.00611.04
5.1.30.0070.00211.08
5.1.20.0100.00010.69
5.1.10.0060.00310.66
5.1.00.0070.00210.79
5.0.50.0040.00410.16
5.0.40.0060.00310.02
5.0.30.0000.0079.93
5.0.20.0070.0009.93
5.0.10.0040.0049.93
5.0.00.0040.0049.93
4.4.90.0060.0009.93
4.4.80.0060.0009.93
4.4.70.0050.0009.93
4.4.60.0040.0009.93
4.4.50.0030.0029.93
4.4.40.0050.0009.93
4.4.30.0040.0009.93
4.4.20.0050.0009.93
4.4.10.0030.0029.93
4.4.00.0050.0009.93
4.3.110.0050.0009.93
4.3.100.0050.0009.93
4.3.90.0000.0059.93
4.3.80.0050.0009.93
4.3.70.0000.0059.93
4.3.60.0000.0049.93
4.3.50.0050.0009.93
4.3.40.0040.0009.93
4.3.30.0000.0049.93
4.3.20.0000.0039.93
4.3.10.0000.0039.93
4.3.00.0030.0009.93

preferences:
13.36 ms | 406 KiB | 5 Q