3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = NULL; $c = ''; print $a ?? '1b'; print "\n"; print $a ?: '2b'; print "\n"; print $c ?? '1d'; print "\n"; print $c ?: '2d'; print "\n"; print $e ?? '1f'; print "\n"; print $e ?: '2f';

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.38
8.1.60.0000.00917.55
8.1.50.0040.00417.40
8.1.40.0040.00417.46
8.1.30.0080.00017.56
8.1.20.0050.00217.60
8.1.10.0080.00017.47
8.1.00.0030.01017.46
8.0.200.0080.00417.00
8.0.190.0000.00716.98
8.0.180.0000.00816.95
8.0.170.0070.00016.98
8.0.160.0040.00416.77
8.0.150.0050.00316.88
8.0.140.0000.00716.92
8.0.130.0030.00313.37
8.0.120.0000.00816.88
8.0.110.0040.00416.76
8.0.100.0030.00316.88
8.0.90.0000.00716.72
8.0.80.0040.01116.91
8.0.70.0000.00716.96
8.0.60.0080.00016.96
8.0.50.0040.00416.89
8.0.30.0110.00617.03
8.0.20.0120.00717.41
8.0.10.0030.02316.88
8.0.00.0100.00916.89
7.4.300.0030.00316.49
7.4.290.0030.00316.40
7.4.280.0050.00316.48
7.4.270.0070.00016.51
7.4.260.0080.00016.54
7.4.250.0070.00016.50
7.4.240.0030.00516.38
7.4.230.0070.00016.30
7.4.220.0140.00416.42
7.4.210.0060.00916.68
7.4.200.0070.00016.28
7.4.160.0140.00316.35
7.4.150.0110.00816.96
7.4.140.0100.00917.38
7.4.130.0070.01216.52
7.4.120.0080.01016.52
7.4.110.0110.00816.45
7.4.100.0080.01016.61
7.4.90.0070.01116.54
7.4.80.0060.01217.94
7.4.70.0080.01116.49
7.4.60.0090.00816.38
7.4.50.0080.01016.45
7.4.40.0100.00716.45
7.4.30.0090.00716.33
7.4.20.0090.00716.36
7.4.10.0070.01016.03
7.4.00.0060.01015.62
7.3.330.0000.00513.24
7.3.320.0000.00813.24
7.3.310.0030.00316.27
7.3.300.0060.00016.30
7.3.290.0060.00916.31
7.3.280.0090.00716.33
7.3.270.0100.00816.84
7.3.260.0060.01116.46
7.3.250.0130.00716.38
7.3.240.0060.01116.36
7.3.230.0030.01416.44
7.3.220.0120.00616.36
7.3.210.0070.01016.38
7.3.200.0090.01116.23
7.3.190.0080.00916.41
7.3.180.0110.00916.35
7.3.170.0140.00616.36
7.3.160.0060.01116.40
7.3.150.0090.00716.36
7.3.140.0050.01116.22
7.3.130.0060.01015.87
7.3.120.0070.01115.70
7.3.110.0090.00915.67
7.3.100.0070.00815.57
7.3.90.0050.01015.52
7.3.80.0080.00815.60
7.3.70.0060.00815.51
7.3.60.0060.01015.44
7.3.50.0080.00715.54
7.3.40.0070.01015.55
7.3.30.0050.01015.53
7.3.20.0080.00816.20
7.3.10.0080.00816.19
7.3.00.0070.01016.25
7.2.340.0120.00616.66
7.2.330.0100.01216.45
7.2.320.0100.01416.58
7.2.310.0140.01016.61
7.2.300.0060.01416.53
7.2.290.0170.00316.50
7.2.280.0050.01216.47
7.2.270.0110.00616.42
7.2.260.0100.00616.23
7.2.250.0110.00515.80
7.2.240.0060.01115.79
7.2.230.0070.00815.80
7.2.220.0100.00815.60
7.2.210.0110.00615.69
7.2.200.0080.01215.66
7.2.190.0100.00815.66
7.2.180.0110.00815.68
7.2.170.0100.01015.68
7.2.160.0090.00915.87
7.2.150.0110.00716.30
7.2.140.0110.01016.32
7.2.130.0120.00816.27
7.2.120.0120.00616.30
7.2.110.0110.00816.27
7.2.100.0100.00816.32
7.2.90.0080.01116.34
7.2.80.0120.00916.15
7.2.70.0120.00916.28
7.2.60.0200.01016.03
7.2.50.0270.01016.05
7.2.40.0260.00916.15
7.2.30.0220.00816.09
7.2.20.0240.00716.11
7.2.10.0250.00916.22
7.2.00.0260.01116.18
7.1.330.0050.01015.58
7.1.320.0100.00715.29
7.1.310.0110.00515.39
7.1.300.0100.00615.33
7.1.290.0100.00815.29
7.1.280.0100.00715.26
7.1.270.0080.00815.29
7.1.260.0090.00715.26
7.1.250.0080.00815.14
7.1.240.0100.00715.17
7.1.230.0070.01215.11
7.1.220.0110.00915.17
7.1.210.0100.01015.14
7.1.200.0110.00615.25
7.1.190.0090.00915.07
7.1.180.0080.01015.12
7.1.170.0330.00814.84
7.1.160.0240.00815.32
7.1.150.0240.00815.29
7.1.140.0220.01015.33
7.1.130.0290.00715.25
7.1.120.0260.00815.32
7.1.110.0270.00715.35
7.1.100.0290.01015.36
7.1.90.0220.00715.40
7.1.80.1210.00715.37
7.1.70.1040.00715.53
7.1.60.0870.01119.48
7.1.50.1070.01119.30
7.1.40.0730.01119.35
7.1.30.0910.01019.31
7.1.20.0680.01119.39
7.1.10.0510.00915.34
7.1.00.0410.00915.37
7.0.330.0110.00914.70
7.0.320.0170.00814.77
7.0.310.0150.00514.77
7.0.300.0310.00814.56
7.0.290.0310.00814.98
7.0.280.0140.00914.68
7.0.270.0350.00814.93
7.0.260.0290.01014.90
7.0.250.0340.00614.89
7.0.240.0310.01214.99
7.0.230.0280.00614.95
7.0.220.0240.00714.82
7.0.210.0230.01014.83
7.0.200.1370.00815.11
7.0.190.1250.01015.23
7.0.180.0690.01015.00
7.0.170.0890.00815.11
7.0.160.0950.00514.98
7.0.150.0550.00714.99
7.0.140.0450.00815.07
7.0.130.0560.00715.12
7.0.120.0790.00815.07
7.0.110.0460.00915.00
7.0.100.0530.01014.98
7.0.90.0530.00715.09
7.0.80.0550.00815.03
7.0.70.0560.00815.09
7.0.60.0520.00815.01
7.0.50.0500.00815.05
7.0.40.0470.00815.11
7.0.30.0270.00915.12
7.0.20.0500.00815.14
7.0.10.0600.00615.03
7.0.00.0600.00815.11
5.6.400.0140.00815.36
5.6.390.0130.00715.29
5.6.380.0110.00915.24
5.6.370.0120.01215.41
5.6.360.0140.00915.26
5.6.350.0110.01115.31
5.6.340.0100.01215.24
5.6.330.0140.00815.31
5.6.320.0140.00715.25
5.6.310.0100.01215.44
5.6.300.0120.02917.31
5.6.290.0120.02617.27
5.6.280.0130.03417.34
5.6.270.0100.02917.35
5.6.260.0110.02817.43
5.6.250.0120.02817.32
5.6.240.0130.02817.40
5.6.230.0110.03517.41
5.6.220.0130.02817.33
5.6.210.0130.03017.23
5.6.200.0110.03117.38
5.6.190.0120.02917.41
5.6.180.0100.03417.45
5.6.170.0130.02817.31
5.6.160.0130.02817.40
5.6.150.0130.03217.35
5.6.140.0130.03017.25
5.6.130.0120.03217.34
5.6.120.0120.02817.38
5.6.110.0110.03117.33
5.6.100.0120.03217.29
5.6.90.0100.02917.26
5.6.80.0120.02617.04
5.6.70.0130.02817.09
5.6.60.0120.02817.08
5.6.50.0110.02917.05
5.6.40.0110.02816.96
5.6.30.0100.02917.07
5.6.20.0120.02617.07
5.6.10.0140.02317.12
5.6.00.0150.02917.10
5.5.380.0120.02816.11
5.5.370.0120.03116.09
5.5.360.0140.03116.08
5.5.350.0140.02916.03
5.5.340.0140.03216.26
5.5.330.0120.03116.29
5.5.320.0110.03116.30
5.5.310.0150.02616.30
5.5.300.0150.02616.18
5.5.290.0140.03216.30
5.5.280.0120.03016.18
5.5.270.0140.02916.28
5.5.260.0140.03116.24
5.5.250.0140.02616.12
5.5.240.0110.02516.00
5.5.230.0120.02415.92
5.5.220.0110.02615.98
5.5.210.0120.02516.08
5.5.200.0100.02816.01
5.5.190.0130.02816.04
5.5.180.0110.02816.07
5.5.170.0110.01215.13
5.5.160.0110.02816.06
5.5.150.0120.02815.99
5.5.140.0140.02416.04
5.5.130.0130.02616.01
5.5.120.0170.02315.99
5.5.110.0130.02816.03
5.5.100.0120.02716.03
5.5.90.0110.02816.00
5.5.80.0150.02616.02
5.5.70.0140.02515.95
5.5.60.0120.02815.94
5.5.50.0120.02616.00
5.5.40.0120.02815.95
5.5.30.0110.02915.98
5.5.20.0130.02516.04
5.5.10.0130.03215.99
5.5.00.0120.03015.93
5.4.450.0140.03515.91
5.4.440.0180.03315.79
5.4.430.0130.03115.90
5.4.420.0100.03515.89
5.4.410.0130.03015.86
5.4.400.0120.03115.70
5.4.390.0110.02915.68
5.4.380.0120.02915.69
5.4.370.0130.03115.70
5.4.360.0130.03115.68
5.4.350.0110.03315.68
5.4.340.0150.03015.67
5.4.330.0180.00112.29
5.4.320.0100.02915.72
5.4.310.0140.03015.65
5.4.300.0110.03115.66
5.4.290.0100.03815.68
5.4.280.0110.03515.66
5.4.270.0110.03415.68
5.4.260.0120.03315.65
5.4.250.0130.03215.67
5.4.240.0120.02815.75
5.4.230.0120.03515.69
5.4.220.0130.03715.74
5.4.210.0110.03215.65
5.4.200.0120.03015.63
5.4.190.0130.03215.78
5.4.180.0120.03515.73
5.4.170.0120.02715.71
5.4.160.0130.03715.73
5.4.150.0140.03315.72
5.4.140.0100.03114.70
5.4.130.0120.03414.70
5.4.120.0120.02714.69
5.4.110.0110.03314.74
5.4.100.0120.02914.68
5.4.90.0120.02714.68
5.4.80.0110.02914.69
5.4.70.0110.02614.70
5.4.60.0080.03014.68
5.4.50.0130.03114.70
5.4.40.0100.02814.73
5.4.30.0120.02614.67
5.4.20.0090.02814.69
5.4.10.0110.02914.67
5.4.00.0090.03014.51
5.3.290.0100.03214.24
5.3.280.0090.03414.17
5.3.270.0110.03114.20
5.3.260.0120.03014.19
5.3.250.0130.03114.22
5.3.240.0120.03314.10
5.3.230.0150.02914.22
5.3.220.0110.02914.17
5.3.210.0120.02914.12
5.3.200.0170.02714.18
5.3.190.0110.03114.19
5.3.180.0090.02914.17
5.3.170.0100.02814.23
5.3.160.0140.02914.26
5.3.150.0100.03114.27
5.3.140.0110.03014.18
5.3.130.0100.02914.25
5.3.120.0170.03114.09
5.3.110.0100.03014.23
5.3.100.0120.02914.02
5.3.90.0120.03314.01
5.3.80.0070.03313.99
5.3.70.0130.02514.01
5.3.60.0120.02813.94
5.3.50.0100.03013.92
5.3.40.0100.02914.00
5.3.30.0110.03413.91
5.3.20.0100.02913.86
5.3.10.0090.03213.76
5.3.00.0110.03913.79
5.2.170.0080.02412.76
5.2.160.0080.02312.72
5.2.150.0100.02412.74
5.2.140.0090.02512.74
5.2.130.0070.02712.73
5.2.120.0100.02312.68
5.2.110.0090.02512.75
5.2.100.0090.02612.68
5.2.90.0100.02412.73
5.2.80.0100.02912.63
5.2.70.0080.02612.70
5.2.60.0090.02712.60
5.2.50.0130.02112.67
5.2.40.0090.02912.68
5.2.30.0100.02912.68
5.2.20.0090.02512.60
5.2.10.0100.02212.57
5.2.00.0090.02712.49
5.1.60.0110.01812.11
5.1.50.0090.02112.12
5.1.40.0090.01912.14
5.1.30.0060.02312.29
5.1.20.0100.02112.25
5.1.10.0090.02212.17
5.1.00.0090.02112.13
5.0.50.0060.01611.62
5.0.40.0060.01811.60
5.0.30.0070.02711.53
5.0.20.0070.01811.53
5.0.10.0080.01611.52
5.0.00.0080.02111.57
4.4.90.0060.01311.34
4.4.80.0040.01511.34
4.4.70.0070.01011.34
4.4.60.0060.01411.34
4.4.50.0060.01411.34
4.4.40.0050.01811.34
4.4.30.0050.01411.34
4.4.20.0050.01311.34
4.4.10.0050.01511.34
4.4.00.0060.01811.34
4.3.110.0040.01511.34
4.3.100.0060.01111.34
4.3.90.0080.01011.34
4.3.80.0060.01811.34
4.3.70.0040.01311.34
4.3.60.0070.01211.34
4.3.50.0050.01511.34
4.3.40.0070.02111.34
4.3.30.0060.01411.34
4.3.20.0040.01211.34
4.3.10.0040.01311.34
4.3.00.0030.01411.34

preferences:
13.53 ms | 406 KiB | 5 Q