3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = null; $test2 = 'ok'; $test3 = $test1 ?? $test2; echo $test3;

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.3.60.0070.00716.49
8.3.50.0090.01222.05
8.3.40.0110.01118.67
8.3.30.0070.00718.73
8.3.20.0100.01020.13
8.3.10.0090.00923.30
8.3.00.0000.00819.13
8.2.180.0070.01118.29
8.2.170.0130.00722.96
8.2.160.0100.01020.33
8.2.150.0030.00624.18
8.2.140.0120.00624.66
8.2.130.0080.00417.63
8.2.120.0080.00026.35
8.2.110.0090.00020.60
8.2.100.0000.01117.72
8.2.90.0040.00419.16
8.2.80.0000.00917.97
8.2.70.0050.00317.50
8.2.60.0070.00018.04
8.2.50.0040.00418.07
8.2.40.0060.00319.38
8.2.30.0020.00520.67
8.2.20.0050.00317.72
8.2.10.0040.00418.17
8.2.00.0040.00418.14
8.1.280.0040.01425.92
8.1.270.0080.00022.14
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0080.00322.03
8.1.230.0110.00022.60
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0030.00617.10
8.1.180.0050.00318.10
8.1.170.0050.00318.54
8.1.160.0040.00422.00
8.1.150.0050.00318.80
8.1.140.0000.00919.45
8.1.130.0030.00317.73
8.1.120.0070.00017.43
8.1.110.0030.00517.40
8.1.100.0040.00417.43
8.1.90.0000.00817.33
8.1.80.0060.00317.38
8.1.70.0040.00417.25
8.1.60.0030.00617.55
8.1.50.0040.00417.45
8.1.40.0030.00517.45
8.1.30.0000.00917.57
8.1.20.0040.00417.46
8.1.10.0060.00317.48
8.1.00.0000.00817.28
8.0.300.0080.00018.77
8.0.290.0090.00016.63
8.0.280.0000.00818.45
8.0.270.0030.00317.11
8.0.260.0000.00817.25
8.0.250.0000.00816.95
8.0.240.0050.00316.94
8.0.230.0030.00316.91
8.0.220.0060.00316.79
8.0.210.0030.00616.68
8.0.200.0080.00016.88
8.0.190.0000.00816.84
8.0.180.0000.00716.83
8.0.170.0040.00416.70
8.0.160.0070.00016.81
8.0.150.0000.00716.76
8.0.140.0040.00416.75
8.0.130.0030.00613.12
8.0.120.0080.00016.74
8.0.110.0050.00316.68
8.0.100.0060.00316.88
8.0.90.0000.00716.71
8.0.80.0120.00316.86
8.0.70.0040.00416.85
8.0.60.0070.00016.69
8.0.50.0070.00016.75
8.0.30.0060.01417.12
8.0.20.0150.00817.40
8.0.10.0000.00716.79
8.0.00.0110.00716.73
7.4.330.0050.00015.08
7.4.320.0070.00016.38
7.4.300.0030.00316.34
7.4.290.0040.00416.47
7.4.280.0080.00016.35
7.4.270.0070.00016.45
7.4.260.0040.00416.40
7.4.250.0000.00916.41
7.4.240.0020.00516.55
7.4.230.0050.00316.58
7.4.220.0040.01816.44
7.4.210.0060.01116.41
7.4.200.0000.00716.30
7.4.160.0090.00616.50
7.4.150.0090.01417.40
7.4.140.0090.01017.86
7.4.130.0130.00716.52
7.4.120.0120.00716.42
7.4.110.0110.00716.25
7.4.100.0090.00916.50
7.4.90.0070.01116.32
7.4.80.0110.01119.39
7.4.70.0070.01416.34
7.4.60.0120.00616.51
7.4.50.0090.00016.48
7.4.40.0040.01516.25
7.4.30.0150.00616.46
7.4.00.0100.00714.76
7.3.330.0030.00312.93
7.3.320.0000.00512.91
7.3.310.0030.00316.12
7.3.300.0000.00716.23
7.3.290.0000.00616.04
7.3.280.0010.01416.23
7.3.270.0070.01017.40
7.3.260.0100.00716.25
7.3.250.0100.00816.21
7.3.240.0140.00516.45
7.3.230.0060.01216.48
7.3.210.0130.00316.34
7.3.200.0060.01216.23
7.3.190.0100.01316.10
7.3.180.0070.01016.32
7.3.170.0100.00716.27
7.3.160.0100.01016.39
7.2.330.0170.00016.59
7.2.320.0140.00316.49
7.2.310.0090.00916.68
7.2.300.0130.00316.60
7.2.290.0130.01016.43
7.2.60.0070.00716.71
7.2.00.0060.00619.13
7.1.200.0130.00015.85
7.1.100.0000.01118.21
7.1.70.0040.00417.03
7.1.60.0130.01019.48
7.1.50.0070.01316.80
7.1.00.0030.07322.45
7.0.200.0540.00414.27
7.0.60.0000.04319.93
7.0.50.0200.06717.81
7.0.40.0000.04720.06
7.0.30.0300.08020.06
7.0.20.0170.04320.20
7.0.10.0100.08720.00
7.0.00.0170.07320.13
5.6.210.0130.07020.50
5.6.200.0070.03718.24
5.6.190.0070.03720.63
5.6.180.0130.05720.59
5.6.170.0370.07320.50
5.6.160.0100.06020.34
5.6.150.0100.04718.25
5.6.140.0170.06318.18
5.6.130.0030.08018.14
5.6.120.0030.08320.97
5.6.110.0100.07021.04
5.6.100.0100.05720.88
5.6.90.0100.04020.87
5.6.80.0100.06020.38
5.5.350.3170.04320.52
5.5.340.0070.05318.07
5.5.330.0100.08020.30
5.5.320.0270.06320.27
5.5.310.0330.06720.30
5.5.300.0100.06717.99
5.5.290.0100.07017.95
5.5.280.0100.07720.87
5.5.270.0030.04720.79
5.5.260.0100.06320.84
5.5.250.0100.05020.60
5.5.240.0200.06320.15

preferences:
45.73 ms | 401 KiB | 5 Q