3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = ['bar' => 'boo']; $baz = ['boo' => 'bay']; $bar = $baz[$foo['bar'] ?? ''] ?? '' ; var_dump($bar); $foo = []; $baz = []; $bar = $baz[$foo['bar'] ?? ''] ?? '' ; var_dump($bar);

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.5.10.0140.00816.58
8.5.00.0110.01019.87
8.4.160.0130.00923.93
8.4.150.0020.00014.05
8.4.140.0140.00717.54
8.4.130.0050.00517.95
8.4.120.0120.00820.59
8.4.110.0050.00422.27
8.4.100.0110.00717.52
8.4.90.0120.00818.53
8.4.80.0060.01019.53
8.4.70.0050.00317.66
8.4.60.0070.00318.45
8.4.50.0130.00718.61
8.4.40.0060.01222.56
8.4.30.0170.00322.41
8.4.20.0090.01218.64
8.4.10.0090.01219.57
8.3.290.0130.01018.37
8.3.280.0090.01118.21
8.3.270.0110.00816.54
8.3.260.0100.00916.48
8.3.250.0150.00419.00
8.3.240.0110.00716.61
8.3.230.0050.00416.61
8.3.220.0110.00717.00
8.3.210.0140.00516.66
8.3.200.0030.00616.24
8.3.190.0130.00518.36
8.3.180.0060.00216.46
8.3.170.0000.00718.70
8.3.160.0090.00918.36
8.3.150.0130.00618.55
8.3.140.0060.00317.41
8.3.130.0040.00818.18
8.3.120.0150.00020.73
8.3.110.0120.00620.94
8.3.100.0080.00018.29
8.3.90.0110.00726.77
8.3.80.0080.00316.38
8.3.70.0090.00616.58
8.3.60.0110.00418.31
8.3.50.0070.00917.25
8.3.40.0090.00618.85
8.3.30.0110.00318.59
8.3.20.0050.00320.55
8.3.10.0080.00020.42
8.3.00.0040.00420.71
8.2.300.0110.00818.11
8.2.290.0140.00420.53
8.2.280.0040.00518.43
8.2.270.0140.00418.90
8.2.260.0060.00316.43
8.2.250.0040.00416.54
8.2.240.0000.00917.02
8.2.230.0040.00422.58
8.2.220.0040.00424.06
8.2.210.0030.00626.77
8.2.200.0060.00318.54
8.2.190.0180.00316.58
8.2.180.0070.01325.92
8.2.170.0150.00018.83
8.2.160.0100.00322.96
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0030.00622.04
8.2.100.0080.00418.09
8.2.90.0000.00919.95
8.2.80.0030.00617.97
8.2.70.0040.00418.04
8.2.60.0000.00718.09
8.2.50.0040.00418.10
8.2.40.0040.00419.94
8.2.30.0040.00417.98
8.2.20.0020.00518.12
8.2.10.0050.00319.29
8.2.00.0040.00418.03
8.1.340.0130.00619.53
8.1.330.0090.00922.00
8.1.320.0100.00915.92
8.1.310.0050.00318.29
8.1.300.0100.00018.03
8.1.290.0080.00330.84
8.1.280.0170.00325.92
8.1.270.0040.00423.69
8.1.260.0070.00726.35
8.1.250.0110.00328.09
8.1.240.0030.00622.24
8.1.230.0040.00720.79
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0080.00017.35
8.1.190.0030.00517.23
8.1.180.0000.00918.10
8.1.170.0050.00618.35
8.1.160.0020.00518.82
8.1.150.0040.00418.76
8.1.140.0000.00720.13
8.1.130.0000.00720.22
8.1.120.0030.00317.41
8.1.110.0040.00417.27
8.1.100.0080.00317.44
8.1.90.0000.00717.38
8.1.80.0050.00317.33
8.1.70.0040.00417.29
8.1.60.0080.00017.55
8.1.50.0110.00017.39
8.1.40.0100.00017.50
8.1.30.0000.00717.65
8.1.20.0060.00317.61
8.1.10.0080.00017.50
8.1.00.0050.00217.43
8.0.300.0070.00019.62
8.0.290.0080.00016.58
8.0.280.0030.00318.38
8.0.270.0000.00917.09
8.0.260.0060.00018.37
8.0.250.0070.00016.91
8.0.240.0030.00316.78
8.0.230.0030.00316.78
8.0.220.0040.00416.74
8.0.210.0070.00016.84
8.0.200.0030.00316.81
8.0.190.0000.00716.78
8.0.180.0040.00416.78
8.0.170.0060.00316.82
8.0.160.0050.00516.82
8.0.150.0030.00516.73
8.0.140.0030.00516.75
8.0.130.0030.00313.25
8.0.120.0000.00916.68
8.0.110.0020.00516.65
8.0.100.0050.00316.78
8.0.90.0040.00416.77
8.0.80.0120.00816.82
8.0.70.0070.00016.66
8.0.60.0000.00716.82
8.0.50.0000.00816.86
8.0.30.0070.01417.00
8.0.20.0060.01317.02
8.0.10.0000.00716.80
8.0.00.0110.01316.67
7.4.330.0020.00216.89
7.4.320.0000.00716.48
7.4.300.0000.00716.42
7.4.290.0040.00416.48
7.4.280.0040.00416.50
7.4.270.0040.00416.51
7.4.260.0050.00316.47
7.4.250.0040.00416.49
7.4.240.0050.00316.54
7.4.230.0000.00816.34
7.4.220.0030.00316.51
7.4.210.0070.00616.49
7.4.200.0070.00016.43
7.4.160.0120.00616.53
7.4.140.0110.00617.86
7.4.130.0200.00316.51
7.4.120.0110.00616.46
7.4.110.0090.01216.50
7.4.100.0110.01116.58
7.4.90.0060.01116.33
7.4.80.0030.01319.39
7.4.70.0060.01116.39
7.4.60.0060.00916.62
7.4.50.0030.01316.30
7.4.40.0100.01016.52
7.4.00.0040.00714.77
7.3.330.0000.00513.13
7.3.320.0060.00013.03
7.3.310.0000.00716.26
7.3.300.0000.00716.20
7.3.290.0070.00016.13
7.3.280.0080.01016.20
7.3.260.0090.01116.35
7.3.240.0070.01016.25
7.3.230.0060.01216.49
7.3.210.0110.00716.49
7.3.200.0070.01016.39
7.3.190.0090.00916.18
7.3.180.0070.01016.52
7.3.170.0190.00316.46
7.3.160.0130.00316.41
7.3.120.0080.00314.45
7.3.110.0040.00714.95
7.3.100.0070.00314.68
7.3.90.0110.00014.70
7.3.80.0030.00814.72
7.3.70.0000.01114.71
7.3.60.0070.00414.83
7.3.50.0050.00514.49
7.3.40.0080.00314.57
7.3.30.0050.00514.61
7.3.20.0470.00915.12
7.3.10.0400.00415.74
7.3.00.0300.00515.65
7.2.330.0080.00816.34
7.2.320.0120.00616.28
7.2.310.0130.01016.51
7.2.300.0030.01316.35
7.2.290.0120.00916.44
7.2.250.0000.01215.05
7.2.240.0030.00614.86
7.2.230.0080.00415.11
7.2.220.0040.00714.63
7.2.210.0060.00614.83
7.2.200.0090.00314.68
7.2.190.0040.00815.00
7.2.180.0070.00514.93
7.2.170.0110.00014.93
7.2.160.0030.01014.59
7.2.150.0310.00715.55
7.2.140.0380.00915.85
7.2.130.0360.00515.81
7.2.120.0390.00415.91
7.2.110.0300.00815.70
7.2.100.0350.00415.94
7.2.90.0390.00515.86
7.2.80.0310.00715.74
7.2.70.0300.00915.66
7.2.60.0310.00515.86
7.2.50.0270.00815.69
7.2.40.0430.00815.60
7.2.30.0370.00315.87
7.2.20.0290.00515.58
7.2.10.0330.00715.73
7.2.00.0640.01115.81
7.1.330.0000.01115.64
7.1.320.0000.01115.52
7.1.310.0040.00715.84
7.1.300.0030.00815.80
7.1.290.0030.00615.77
7.1.280.0070.00415.70
7.1.270.0030.00715.63
7.1.260.0070.00415.74
7.1.250.0290.00714.82

preferences:
36.09 ms | 403 KiB | 5 Q