3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; $b = null; $c = 'c'; $a ??= $b ??= $c; print $b; print $a;

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.0000.01019.52
8.4.10.0080.00020.50
8.3.140.0090.00017.34
8.3.130.0000.00818.22
8.3.120.0180.00918.51
8.3.110.0120.00620.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00019.36
8.3.70.0090.00616.63
8.3.60.0150.00316.37
8.3.50.0070.01024.47
8.3.40.0160.00618.95
8.3.30.0120.00318.67
8.3.20.0110.00724.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.270.0190.01116.53
8.2.260.0150.00316.49
8.2.250.0120.00316.43
8.2.240.0070.00717.09
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0050.00326.77
8.2.200.0040.00418.88
8.2.190.0110.00416.63
8.2.180.0100.00725.92
8.2.170.0110.00418.79
8.2.160.0040.01122.96
8.2.150.0050.00325.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.66
8.2.110.0040.00519.89
8.2.100.0050.00518.37
8.2.90.0150.00318.41
8.2.80.0030.00618.76
8.2.70.0050.00738.71
8.2.60.0120.00538.69
8.2.50.0090.00438.71
8.2.40.0100.00639.73
8.2.30.0110.00639.09
8.2.20.0090.00538.62
8.2.10.0100.00639.69
8.2.00.0100.00639.25
8.1.310.0140.00018.26
8.1.300.0110.00417.58
8.1.290.0060.00330.84
8.1.280.0110.00725.92
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0000.00928.09
8.1.240.0150.00221.22
8.1.230.0020.01320.61
8.1.220.0020.00718.14
8.1.210.0030.00619.32
8.1.200.0110.00538.35
8.1.190.0120.00338.33
8.1.180.0060.00938.86
8.1.170.0090.00638.73
8.1.160.0130.00238.93
8.1.150.0080.00638.94
8.1.140.0090.00638.80
8.1.130.0080.00330.33
8.1.120.0070.00630.01
8.1.110.0070.00430.35
8.1.100.0090.00430.36
8.1.90.0070.00729.94
8.1.80.0050.00629.97
8.1.70.0090.00530.06
8.1.60.0060.00730.11
8.1.50.0060.00526.46
8.1.40.0050.00626.52
8.1.30.0080.00627.98
8.1.20.0060.00928.02
8.1.10.0080.00527.96
8.1.00.0080.00627.90
8.0.300.0050.00418.29
8.0.290.0040.00837.88
8.0.280.0070.00438.53
8.0.270.0090.00238.01
8.0.260.0060.00429.75
8.0.250.0070.00424.75
8.0.240.0060.00629.75
8.0.230.0080.00329.82
8.0.220.0070.00529.71
8.0.210.0100.00129.71
8.0.200.0080.00329.72
8.0.190.0090.00229.71
8.0.180.0070.00429.75
8.0.170.0070.00526.00
8.0.160.0090.00527.57
8.0.150.0100.00427.53
8.0.140.0090.00427.55
8.0.130.0070.00826.96
8.0.120.0100.00527.55
8.0.110.0060.00626.03
8.0.100.0080.00426.02
8.0.90.0100.00426.00
8.0.80.0090.00622.20
8.0.70.0070.00726.00
8.0.60.0060.00726.00
8.0.50.0070.00626.17
8.0.30.0100.00626.22
8.0.20.0090.00526.28
8.0.10.0070.00626.07
8.0.00.0080.00626.39
7.4.330.0070.00428.75
7.4.320.0080.00626.09
7.4.300.0120.00429.60
7.4.290.0110.00529.59
7.4.280.0110.00427.45
7.4.270.0130.00527.45
7.4.260.0120.00627.44
7.4.250.0080.00421.93
7.4.240.0110.00527.42
7.4.230.0100.00525.83
7.4.220.0080.00424.65
7.4.210.0100.00522.44
7.4.200.0100.00425.79
7.4.190.0090.00427.45
7.4.180.0100.00427.44
7.4.160.0080.00427.42
7.4.150.0080.00427.39
7.4.140.0080.00527.38
7.4.130.0090.00524.63
7.4.120.0100.00425.82
7.4.110.0120.00525.77
7.4.100.0140.00425.85
7.4.90.0120.00625.76
7.4.80.0120.00626.22
7.4.70.0120.00525.72
7.4.60.0120.00525.84
7.4.50.0100.00725.73
7.4.40.0140.00525.76
7.4.30.0090.00723.66
7.4.20.0120.00525.73
7.4.10.0110.00625.78
7.4.00.0080.00522.97
7.3.330.0110.00527.24
7.3.320.0130.00526.71
7.3.310.0120.00527.22
7.3.300.0100.00425.64
7.3.290.0110.00623.50
7.3.280.0130.00625.62
7.3.270.0120.00427.25
7.3.260.0140.00525.67
7.3.250.0140.00627.22
7.3.240.0100.00822.83
7.3.230.0120.00725.63
7.3.220.0130.00327.26
7.3.210.0140.00325.62
7.3.200.0140.00325.66
7.3.190.0120.00425.62
7.3.180.0120.00425.64
7.3.170.0100.00625.66
7.3.160.0130.00525.58
7.3.150.0120.00425.71
7.3.140.0130.00425.64
7.3.130.0130.00325.60
7.3.120.0100.00625.67
7.3.110.0100.00525.64
7.3.100.0130.00525.63
7.3.90.0140.00425.73
7.3.80.0110.00925.61
7.3.70.0140.00425.68
7.3.60.0140.00525.65
7.3.50.0130.00625.66
7.3.40.0140.00425.67
7.3.30.0120.00725.70
7.3.20.0120.00726.64
7.3.10.0120.00726.53
7.3.00.0120.00426.62
7.2.340.0100.00527.16
7.2.330.0120.00725.64
7.2.320.0120.00725.70
7.2.310.0130.00525.65
7.2.300.0140.00525.65
7.2.290.0140.00525.71
7.2.280.0110.00725.63
7.2.270.0130.00425.63
7.2.260.0120.00525.66
7.2.250.0110.00525.63
7.2.240.0110.00525.66
7.2.230.0100.00725.66
7.2.220.0130.00625.63
7.2.210.0150.00525.64
7.2.200.0140.00825.65
7.2.190.0130.00725.67
7.2.180.0130.00625.64
7.2.170.0120.00725.76
7.2.160.0120.00625.73
7.2.150.0170.00526.72
7.2.140.0170.00326.70
7.2.130.0140.00426.83
7.2.120.0140.00626.75
7.2.110.0150.00426.80
7.2.100.0120.00726.80
7.2.90.0150.00626.81
7.2.80.0140.00626.68
7.2.70.0140.00426.83
7.2.60.0130.00526.75
7.2.50.0150.00426.80
7.2.40.0110.00626.82
7.2.30.0150.00526.82
7.2.20.0140.00526.86
7.2.10.0160.00426.84
7.2.00.0080.00726.84

preferences:
16.76 ms | 403 KiB | 5 Q