3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['action'] = 'value'; // Example usage for: Null Coalesce Operator $action = $_POST['action'] ?? 'default'; // The above is identical to this if/else statement if (isset($_POST['action'])) { $action = $_POST['action']; } else { $action = 'default'; } var_dump($action); $_POST['action'] = null; // Example usage for: Null Coalesce Operator $action = $_POST['action'] ?? 'default'; // The above is identical to this if/else statement if (isset($_POST['action'])) { $action = $_POST['action']; } else { $action = 'default'; } var_dump($action);

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.0130.00918.31
8.3.50.0190.00016.50
8.3.40.0160.00618.71
8.3.30.0040.01118.67
8.3.20.0080.00020.53
8.3.10.0080.00023.65
8.3.00.0070.00023.70
8.2.180.0120.00618.42
8.2.170.0100.01022.96
8.2.160.0100.00719.21
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0070.01119.95
8.2.110.0000.01021.93
8.2.100.0120.00018.03
8.2.90.0000.00818.22
8.2.80.0000.00818.16
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0070.00018.28
8.2.30.0050.00318.00
8.2.20.0040.00418.00
8.2.10.0040.00418.17
8.2.00.0040.00418.18
8.1.280.0070.00725.92
8.1.270.0000.00722.19
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0110.00022.71
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0060.00318.58
8.1.160.0040.00418.81
8.1.150.0030.00618.78
8.1.140.0070.00019.01
8.1.130.0040.00417.57
8.1.120.0070.00017.46
8.1.110.0050.00317.37
8.1.100.0040.00417.37
8.1.90.0040.00417.47
8.1.80.0040.00417.36
8.1.70.0040.00417.46
8.1.60.0040.00417.52
8.1.50.0040.00417.55
8.1.40.0040.00417.44
8.1.30.0080.00017.74
8.1.20.0030.00517.57
8.1.10.0040.00417.43
8.1.00.0120.00017.47
8.0.300.0030.00519.98
8.0.290.0000.00816.63
8.0.280.0000.00718.47
8.0.270.0070.00017.20
8.0.260.0030.00317.32
8.0.250.0030.00316.94
8.0.240.0050.00316.86
8.0.230.0000.01017.00
8.0.220.0030.00316.88
8.0.210.0030.00316.86
8.0.200.0030.00316.93
8.0.190.0080.00016.99
8.0.180.0030.00416.96
8.0.170.0030.00616.93
8.0.160.0040.00316.86
8.0.150.0040.00416.88
8.0.140.0030.00316.75
8.0.130.0030.00313.39
8.0.120.0080.00016.90
8.0.110.0000.00716.71
8.0.100.0000.00716.81
8.0.90.0060.00316.91
8.0.80.0100.01016.79
8.0.70.0040.00416.87
8.0.60.0000.00716.69
8.0.50.0040.00416.85
8.0.30.0080.01117.00
8.0.20.0110.00817.40
8.0.10.0000.00716.84
8.0.00.0080.01316.87
7.4.330.0050.00016.78
7.4.320.0060.00016.61
7.4.300.0070.00016.63
7.4.290.0040.00416.51
7.4.280.0030.00616.60
7.4.270.0070.00016.59
7.4.260.0000.00716.59
7.4.250.0000.00716.50
7.4.240.0050.00216.63
7.4.230.0000.00716.62
7.4.220.0000.00816.60
7.4.210.0100.00916.64
7.4.200.0030.00516.41
7.4.160.0060.01316.40
7.4.150.0170.00017.40
7.4.140.0100.00817.86
7.4.130.0110.01116.46
7.4.120.0080.01316.47
7.4.110.0120.00616.35
7.4.100.0040.01316.56
7.4.90.0100.00716.54
7.4.80.0090.00619.39
7.4.70.0090.00916.63
7.4.60.0090.00916.60
7.4.50.0100.00716.43
7.4.40.0080.00816.46
7.4.10.0120.00615.11
7.4.00.0120.00515.23
7.3.330.0000.00513.04
7.3.320.0030.00313.21
7.3.310.0030.00316.18
7.3.300.0070.00016.27
7.3.290.0080.00816.27
7.3.280.0090.00916.25
7.3.270.0070.01017.40
7.3.260.0080.00916.38
7.3.250.0070.01116.34
7.3.240.0070.01016.41
7.3.230.0030.01416.36
7.3.210.0060.01316.32
7.3.200.0060.00916.51
7.3.190.0140.00316.50
7.3.180.0080.00816.40
7.3.170.0100.00716.48
7.3.160.0100.00716.44
7.3.130.0080.00815.11
7.3.120.0130.00615.11
7.3.110.0100.01015.11
7.3.100.0080.00815.11
7.3.90.0070.01115.11
7.3.80.0050.00515.11
7.3.70.0080.00815.11
7.3.60.0060.00615.11
7.3.50.0070.00415.11
7.3.40.0060.00315.11
7.3.30.0060.01115.11
7.3.20.0080.00416.40
7.3.10.0060.00916.54
7.3.00.0040.00716.81
7.2.330.0130.01716.76
7.2.320.0030.01316.77
7.2.310.0120.00616.84
7.2.300.0080.00916.55
7.2.290.0130.00316.46
7.2.260.0060.00615.11
7.2.250.0060.01215.23
7.2.240.0040.01215.23
7.2.230.0000.01515.11
7.2.220.0060.01215.11
7.2.210.0130.00315.11
7.2.200.0060.00615.20
7.2.190.0030.01315.24
7.2.180.0030.01015.11
7.2.170.0100.00715.11
7.2.160.0040.01115.13
7.2.150.0110.00416.97
7.2.140.0060.00916.95
7.2.130.0070.00716.96
7.2.120.0060.00616.98
7.2.110.0090.00817.04
7.2.100.0050.00716.71
7.2.90.0060.01016.75
7.2.80.0030.01116.97
7.2.70.0090.00716.95
7.2.60.0060.00817.00
7.2.50.0030.01116.87
7.2.40.0060.00716.81
7.2.30.0070.00616.92
7.2.20.0060.01016.90
7.2.10.0150.00917.18
7.2.00.0170.00617.26
7.1.330.0030.01315.52
7.1.320.0070.01015.81
7.1.310.0060.00615.91
7.1.300.0110.00315.70
7.1.290.0070.00715.89
7.1.280.0140.00315.74
7.1.270.0030.01015.89
7.1.260.0040.01115.79
7.1.250.0040.00915.79
7.1.240.0100.00315.89
7.1.230.0030.01115.93
7.1.220.0060.00315.88
7.1.210.0060.00915.55
7.1.200.0080.00315.71
7.1.190.0030.01015.80
7.1.180.0040.01115.93
7.1.170.0070.00315.80
7.1.160.0110.00415.88
7.1.150.0080.00315.91
7.1.140.0040.01116.05
7.1.130.0030.01315.75
7.1.120.0410.00616.33
7.1.110.0120.00916.05
7.1.100.0140.00716.06
7.1.90.0160.00715.87
7.1.80.0140.00915.94
7.1.70.0150.01115.60
7.1.60.0100.01024.40
7.1.50.0180.00824.55
7.1.40.0190.01023.96
7.1.30.0270.00724.15
7.1.20.0200.00824.22
7.1.10.0080.00615.25
7.1.00.0110.00815.14
7.0.330.0080.00415.21
7.0.320.0130.00315.38
7.0.310.0070.01015.40
7.0.300.0000.01315.38
7.0.290.0110.00415.11
7.0.280.0080.00415.46
7.0.270.0000.01315.34
7.0.260.0070.00715.34
7.0.250.0040.00915.16
7.0.240.0080.00615.65
7.0.230.0030.01015.43
7.0.220.0030.00615.41
7.0.210.0080.00615.54
7.0.200.0060.00915.20
7.0.190.0070.00715.41
7.0.180.0070.00715.19
7.0.170.0070.00315.11
7.0.160.0030.01115.48
7.0.150.0120.00315.38
7.0.140.0040.00415.63
7.0.130.0070.00715.14
7.0.120.0000.01715.45
7.0.110.0000.01415.38
7.0.100.0100.00715.42
7.0.90.0040.00815.23
7.0.80.0110.00415.55
7.0.70.0060.01015.11
7.0.60.0130.00015.11
7.0.50.0090.00615.60
7.0.40.0080.00415.11
7.0.30.0030.01015.11
7.0.20.0100.00715.11
7.0.10.0000.01015.11
7.0.00.0040.00715.11
5.6.400.0090.00315.11
5.6.390.0070.00415.11
5.6.380.0000.01415.11
5.6.370.0060.00915.11
5.6.360.0070.01115.11
5.6.350.0000.01015.11
5.6.340.0050.00515.11
5.6.330.0030.01415.11
5.6.320.0040.01115.11
5.6.310.0070.00715.11
5.6.300.0080.00415.11
5.6.290.0030.01015.11
5.6.280.0040.01515.11
5.6.270.0040.01115.11
5.6.260.0070.01015.11
5.6.250.0080.00015.11
5.6.240.0130.00015.11
5.6.230.0030.00615.11
5.6.220.0000.01415.11
5.6.210.0040.00915.11
5.6.200.0050.00515.11
5.6.190.0070.00415.11
5.6.180.0060.00915.11
5.6.170.0060.00615.11
5.6.160.0060.00615.11
5.6.150.0090.00315.11
5.6.140.0030.00715.11
5.6.130.0030.00615.11
5.6.120.0080.00815.11
5.6.110.0100.00015.11
5.6.100.0030.00815.11
5.6.90.0070.00415.11
5.6.80.0070.01115.11
5.6.70.0110.00715.11
5.6.60.0110.00715.11
5.6.50.0030.01215.11
5.6.40.0030.01615.11
5.6.30.0060.01115.11
5.6.20.0030.01015.11
5.6.10.0110.00415.11
5.6.00.0040.01115.11

preferences:
42.89 ms | 400 KiB | 5 Q