3v4l.org

run code in 300+ PHP versions simultaneously
<?php $settings = []; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array())); $settings['css file'] = NULL; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array())); $settings['css file'] = []; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array())); $settings['css file'] = ['value']; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array())); $settings['css file'] = 'string'; var_dump((array) (!empty($settings['css file']) ? $settings['css file'] : array()));

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.140.0080.00018.37
8.3.130.0000.01116.54
8.3.120.0050.00520.90
8.3.110.0000.00816.50
8.3.100.0070.00019.81
8.3.90.0040.00426.77
8.3.80.0000.00919.36
8.3.70.0160.00316.63
8.3.60.0160.00316.36
8.3.50.0160.00424.41
8.3.40.0070.00719.02
8.3.30.0060.00918.86
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.250.0000.00716.46
8.2.240.0030.00617.29
8.2.230.0060.00320.94
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0040.00418.88
8.2.190.0040.01116.58
8.2.180.0090.00625.92
8.2.170.0090.00619.04
8.2.160.0000.01322.96
8.2.150.0050.00225.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.94
8.2.110.0070.00322.14
8.2.100.0060.00617.91
8.2.90.0060.00320.07
8.2.80.0000.00818.73
8.2.70.0000.00817.63
8.2.60.0030.00618.03
8.2.50.0040.00818.07
8.2.40.0030.00518.34
8.2.30.0000.00718.18
8.2.20.0050.00317.98
8.2.10.0000.00719.30
8.2.00.0040.00419.35
8.1.300.0090.00618.52
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0080.00418.99
8.1.220.0080.00017.76
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0080.00017.25
8.1.180.0030.00518.10
8.1.170.0000.00818.55
8.1.160.0000.00718.96
8.1.150.0040.00418.91
8.1.140.0050.00218.88
8.1.130.0070.00020.05
8.1.120.0030.00517.45
8.1.110.0000.00817.45
8.1.100.0080.00017.35
8.1.90.0000.00817.46
8.1.80.0000.00917.45
8.1.70.0030.00317.46
8.1.60.0050.00317.47
8.1.50.0000.00817.39
8.1.40.0040.00417.43
8.1.30.0050.00217.61
8.1.20.0040.00417.61
8.1.10.0040.00417.54
8.1.00.0000.00817.48
8.0.300.0090.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0030.00317.98
8.0.260.0030.00318.43
8.0.250.0040.00416.84
8.0.240.0000.00716.91
8.0.230.0040.00416.95
8.0.220.0030.00316.93
8.0.210.0030.00316.90
8.0.200.0000.00716.99
8.0.190.0060.00316.85
8.0.180.0000.00816.82
8.0.170.0000.00816.81
8.0.160.0000.00816.94
8.0.150.0040.00416.84
8.0.140.0060.00316.73
8.0.130.0030.00313.32
8.0.120.0000.00716.76
8.0.110.0000.00716.90
8.0.100.0050.00316.83
8.0.90.0000.00716.92
8.0.80.0100.00716.83
8.0.70.0000.00716.93
8.0.60.0040.00416.80
8.0.50.0070.00016.81
8.0.30.0070.01017.26
8.0.20.0040.01316.77
8.0.10.0070.01117.12
8.0.00.0100.01016.96
7.4.330.0030.00315.55
7.4.320.0000.00716.60
7.4.300.0000.00616.52
7.4.290.0000.00816.46
7.4.280.0020.00516.48
7.4.270.0000.00616.60
7.4.260.0000.00513.28
7.4.250.0050.00316.56
7.4.240.0030.00316.49
7.4.230.0040.00416.68
7.4.220.0070.00016.58
7.4.210.0040.01316.58
7.4.200.0000.00716.40
7.4.140.0110.00716.19
7.4.130.0160.00316.33
7.4.120.0060.01216.44
7.4.110.0060.01216.24
7.4.100.0090.00916.41
7.4.90.0150.00316.42
7.4.80.0090.01316.20
7.4.70.0120.01216.23
7.4.60.0070.01516.39
7.4.50.0120.00916.44
7.4.40.0060.01216.21
7.4.30.0150.00416.42
7.4.20.0170.00916.07
7.4.10.0100.00716.41
7.4.00.0120.00616.57
7.3.330.0030.00316.39
7.3.320.0080.00013.15
7.3.310.0040.00416.26
7.3.300.0030.00316.21
7.3.290.0040.01216.36
7.3.260.0100.00916.23
7.3.250.0130.01016.25
7.3.240.0070.01716.39
7.3.230.0060.01116.27
7.3.220.0120.00616.30
7.3.210.0120.00616.27
7.3.200.0110.01116.07
7.3.190.0080.01016.25
7.3.180.0180.00316.59
7.3.170.0110.00716.50
7.3.160.0110.01116.08
7.3.150.0150.00316.30
7.3.140.0200.00816.14
7.3.130.0180.00316.42
7.3.120.0150.00316.47
7.3.110.0130.00716.20
7.3.100.0100.01016.12
7.3.90.0110.00716.46
7.3.80.0040.01416.29
7.3.70.0110.01115.98
7.3.60.0140.00616.34
7.3.50.0100.01316.27
7.3.40.0180.00016.25
7.3.30.0120.00616.19
7.3.20.0060.01416.05
7.3.10.0060.01216.20
7.3.00.0150.00316.21

preferences:
46.51 ms | 403 KiB | 5 Q