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.4.20.0090.01217.60
8.4.10.0030.00617.63
8.3.150.0040.00420.76
8.3.140.0110.00716.75
8.3.130.0000.00916.49
8.3.120.0060.00318.80
8.3.110.0110.00020.94
8.3.100.0060.00624.06
8.3.90.0040.00418.35
8.3.80.0040.00416.63
8.3.70.0090.00616.63
8.3.60.0090.00918.68
8.3.50.0090.01122.05
8.3.40.0090.00618.76
8.3.30.0090.00920.75
8.3.20.0080.00521.95
8.3.10.0080.00522.38
8.3.00.0050.00921.95
8.2.260.0110.00716.91
8.2.250.0030.00718.61
8.2.240.0000.00916.93
8.2.230.0070.00022.58
8.2.220.0040.00437.54
8.2.210.0160.00326.77
8.2.200.0100.00016.75
8.2.190.0030.01216.58
8.2.180.0070.00716.75
8.2.170.0060.01318.79
8.2.160.0100.00722.96
8.2.150.0080.00524.31
8.2.140.0140.00023.81
8.2.130.0110.00424.56
8.2.120.0050.00521.36
8.2.110.0070.00822.03
8.2.100.0040.00920.44
8.2.90.0060.00521.41
8.2.80.0030.00921.67
8.2.70.0060.00620.50
8.2.60.0110.00420.59
8.2.50.0120.00320.53
8.2.40.0090.00221.21
8.2.30.0070.00721.04
8.2.20.0030.00820.37
8.2.10.0040.00720.57
8.2.00.0080.00720.50
8.1.310.0040.00416.66
8.1.300.0030.00618.41
8.1.290.0050.00518.88
8.1.280.0120.00325.92
8.1.270.0040.01023.91
8.1.260.0030.00825.05
8.1.250.0070.00426.05
8.1.240.0080.00422.55
8.1.230.0060.00721.89
8.1.220.0090.00320.35
8.1.210.0030.00920.95
8.1.200.0090.00320.16
8.1.190.0030.00820.10
8.1.180.0040.00820.53
8.1.170.0080.00520.76
8.1.160.0090.00520.89
8.1.150.0070.00820.90
8.1.140.0030.01120.28
8.1.130.0040.00720.16
8.1.120.0080.00520.17
8.1.110.0070.00520.21
8.1.100.0080.00420.18
8.1.90.0050.00820.20
8.1.80.0080.00320.21
8.1.70.0050.00720.17
8.1.60.0050.00820.26
8.1.50.0100.00220.18
8.1.40.0050.00520.21
8.1.30.0070.00420.26
8.1.20.0020.00920.28
8.1.10.0100.00220.22
8.1.00.0060.00920.21
8.0.300.0030.00821.52
8.0.290.0150.00419.86
8.0.280.0100.00920.66
8.0.270.0070.00719.95
8.0.260.0130.00619.87
8.0.250.0090.00919.99
8.0.240.0080.01019.92
8.0.230.0100.00519.92
8.0.220.0090.00319.97
8.0.210.0130.00319.95
8.0.200.0120.00619.98
8.0.190.0120.00419.97
8.0.180.0090.00519.96
8.0.170.0140.00219.97
8.0.160.0100.00519.87
8.0.150.0120.00519.92
8.0.140.0090.00819.94
8.0.130.0130.00118.17
8.0.120.0110.00619.92
8.0.110.0130.00319.86
8.0.100.0110.00319.92
8.0.90.0110.00519.84
8.0.80.0080.01219.94
8.0.70.0050.00519.96
8.0.60.0090.00719.96
8.0.50.0120.00319.93
8.0.30.0110.00519.01
8.0.20.0110.00718.52
8.0.10.0080.01619.92
8.0.00.0130.00618.92
7.4.330.0110.00419.02
7.4.320.0090.00919.72
7.4.300.0170.00219.73
7.4.290.0130.00519.68
7.4.280.0170.00119.72
7.4.270.0150.00319.74
7.4.260.0150.00419.75
7.4.250.0150.00319.73
7.4.240.0150.00419.67
7.4.230.0170.00119.63
7.4.220.0190.00819.69
7.4.210.0150.00919.82
7.4.200.0170.00419.62
7.4.190.0340.00022.96
7.4.180.0180.00722.96
7.4.160.0110.01119.66
7.4.150.0160.00518.96
7.4.140.0150.00718.78
7.4.130.0120.01018.13
7.4.120.0100.01118.13
7.4.110.0180.00518.62
7.4.100.0120.00818.73
7.4.90.0100.01018.68
7.4.80.0130.00819.62
7.4.70.0100.01118.65
7.4.60.0130.00818.57
7.4.50.0170.00818.62
7.4.40.0110.00918.62
7.4.30.0120.00817.66
7.4.20.0120.00717.68
7.4.10.0100.00917.19
7.4.00.0070.00916.43
7.3.330.0120.00818.10
7.3.320.0140.00618.10
7.3.310.0170.00419.62
7.3.300.0180.00219.63
7.3.290.0100.01017.97
7.3.280.0130.00617.99
7.3.270.0140.00618.88
7.3.260.0100.01018.09
7.3.250.0160.00617.70
7.3.240.0110.00818.01
7.3.230.0090.01118.62
7.3.220.0150.00819.66
7.3.210.0120.00918.58
7.3.200.0120.01018.48
7.3.190.0120.00918.60
7.3.180.0160.00718.55
7.3.170.0150.00818.56
7.3.160.0110.01018.59
7.3.150.0120.00617.68
7.3.140.0080.01017.57
7.3.130.0090.00917.05
7.3.120.0090.01116.61
7.3.110.0100.00916.58
7.3.100.0100.00816.50
7.3.90.0080.00916.35
7.3.80.0110.00816.42
7.3.70.0080.00916.34
7.3.60.0080.00916.27
7.3.50.0100.00716.37
7.3.40.0090.01016.37
7.3.30.0070.01016.36
7.3.20.0100.00716.95
7.3.10.0090.00816.94
7.3.00.0100.01017.00
7.2.340.0180.00719.81
7.2.330.0130.01218.62
7.2.320.0130.01218.71
7.2.310.0150.01018.73
7.2.300.0090.01318.68
7.2.290.0200.00318.65
7.2.280.0080.01117.77
7.2.270.0130.00517.73
7.2.260.0130.00617.35
7.2.250.0130.00516.70
7.2.240.0070.01116.68
7.2.230.0090.00716.70
7.2.220.0120.00716.42
7.2.210.0120.00616.50
7.2.200.0090.01116.47
7.2.190.0120.00816.47
7.2.180.0120.00816.49
7.2.170.0120.00916.49
7.2.160.0110.00916.88
7.2.150.0120.00717.25
7.2.140.0130.00917.26
7.2.130.0120.00817.22
7.2.120.0130.00617.25
7.2.110.0120.00717.23
7.2.100.0110.00717.27
7.2.90.0100.01017.29
7.2.80.0140.00917.12
7.2.70.0140.00917.23
7.2.60.0210.01016.89
7.2.50.0280.00916.92
7.2.40.0250.00917.00
7.2.30.0220.00816.95
7.2.20.0230.00716.96
7.2.10.0250.00817.06
7.2.00.0240.01017.03
7.1.330.0070.01016.51
7.1.320.0120.00616.14
7.1.310.0120.00516.23
7.1.300.0130.00616.18
7.1.290.0120.00816.14
7.1.280.0110.00716.11
7.1.270.0090.00816.14
7.1.260.0110.00716.12
7.1.250.0100.00816.26
7.1.240.0100.00816.28
7.1.230.0090.01116.23
7.1.220.0120.00916.28
7.1.210.0130.00816.26
7.1.200.0120.00616.21
7.1.190.0120.00816.19
7.1.180.0110.01016.24
7.1.170.0310.00815.86
7.1.160.0230.00816.27
7.1.150.0230.00716.25
7.1.140.0230.00916.28
7.1.130.0300.00616.21
7.1.120.0260.00816.28
7.1.110.0270.00716.30
7.1.100.0290.01016.31
7.1.90.0220.00616.34
7.1.80.1110.00616.21
7.1.70.0960.00616.27
7.1.60.0800.01119.83
7.1.50.1000.01119.67
7.1.40.0690.01019.71
7.1.30.0840.01019.68
7.1.20.0630.01119.74
7.1.10.0480.00916.10
7.1.00.0380.00816.13
7.0.330.0120.00816.08
7.0.320.0180.00716.13
7.0.310.0170.00416.14
7.0.300.0300.00715.76
7.0.290.0300.00716.12
7.0.280.0140.00816.06
7.0.270.0330.00816.08
7.0.260.0270.01016.05
7.0.250.0320.00616.05
7.0.240.0300.01116.13
7.0.230.0280.00716.10
7.0.220.0240.00815.98
7.0.210.0230.00915.99
7.0.200.1240.00815.98
7.0.190.1130.00916.08
7.0.180.0630.01115.88
7.0.170.0820.00815.98
7.0.160.0880.00515.86
7.0.150.0510.00715.88
7.0.140.0430.00815.95
7.0.130.0520.00715.99
7.0.120.0730.00815.95
7.0.110.0430.01015.88
7.0.100.0490.00915.87
7.0.90.0490.00715.97
7.0.80.0510.00815.91
7.0.70.0510.00815.97
7.0.60.0480.00715.90
7.0.50.0460.00715.93
7.0.40.0430.00815.98
7.0.30.0250.00915.99
7.0.20.0470.00716.01
7.0.10.0560.00615.91
7.0.00.0550.00815.98
5.6.400.0140.00816.62
5.6.390.0140.00616.56
5.6.380.0130.00816.52
5.6.370.0130.01116.67
5.6.360.0140.00916.54
5.6.350.0120.01016.59
5.6.340.0110.01116.53
5.6.330.0160.00716.59
5.6.320.0130.00916.54
5.6.310.0120.01016.70
5.6.300.0130.02617.94
5.6.290.0130.02317.91
5.6.280.0130.03117.97
5.6.270.0120.02717.97
5.6.260.0120.02618.04
5.6.250.0140.02617.95
5.6.240.0140.02618.02
5.6.230.0120.03218.03
5.6.220.0150.02517.96
5.6.210.0140.02717.87
5.6.200.0120.02818.00
5.6.190.0130.02718.03
5.6.180.0110.03118.06
5.6.170.0140.02517.93
5.6.160.0140.02518.02
5.6.150.0130.03017.98
5.6.140.0140.02717.89
5.6.130.0130.02917.96
5.6.120.0120.02618.00
5.6.110.0110.02917.95
5.6.100.0130.02817.92
5.6.90.0110.02617.89
5.6.80.0120.02417.70
5.6.70.0140.02517.75
5.6.60.0130.02617.73
5.6.50.0120.02617.71
5.6.40.0110.02617.63
5.6.30.0110.02617.72
5.6.20.0120.02417.72
5.6.10.0150.02217.77
5.6.00.0150.02717.75
5.5.380.0130.02516.87
5.5.370.0130.02816.86
5.5.360.0150.02816.84
5.5.350.0160.02616.80
5.5.340.0150.02917.01
5.5.330.0130.02817.03
5.5.320.0120.02917.04
5.5.310.0160.02317.04
5.5.300.0160.02416.93
5.5.290.0140.02917.04
5.5.280.0130.02716.94
5.5.270.0140.02717.02
5.5.260.0140.02816.99
5.5.250.0140.02416.88
5.5.240.0120.02316.78
5.5.230.0130.02216.70
5.5.220.0120.02416.75
5.5.210.0130.02316.85
5.5.200.0110.02516.78
5.5.190.0140.02516.81
5.5.180.0120.02616.84
5.5.170.0130.01216.43
5.5.160.0120.02616.83
5.5.150.0120.02616.77
5.5.140.0140.02316.81
5.5.130.0140.02416.79
5.5.120.0170.02116.76
5.5.110.0140.02516.80
5.5.100.0130.02516.80
5.5.90.0110.02616.77
5.5.80.0160.02316.79
5.5.70.0150.02316.73
5.5.60.0120.02616.72
5.5.50.0140.02416.77
5.5.40.0130.02616.73
5.5.30.0120.02716.75
5.5.20.0140.02216.81
5.5.10.0130.02916.76
5.5.00.0130.02716.71

preferences:
58.95 ms | 403 KiB | 5 Q