3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all = ['a', 'b', 'c']; $defaults = array_fill_keys($all, 0); $new = ['b', 'c']; var_export( array_fill_keys(array_intersect($all, $new), 1) + $defaults + ['directCallId' => '654'] );

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.120.0130.00620.49
8.4.110.0100.00522.58
8.4.100.0180.00417.46
8.4.90.0110.00617.63
8.4.80.0100.00519.36
8.4.70.0120.00817.65
8.4.60.0070.01118.75
8.4.50.0050.00417.53
8.4.40.0100.01017.64
8.4.30.0090.01020.60
8.4.20.0130.00717.82
8.4.10.0060.00317.61
8.3.250.0100.00918.84
8.3.240.0110.00916.41
8.3.230.0100.00816.82
8.3.220.0120.00617.38
8.3.210.0110.00716.76
8.3.200.0060.00318.32
8.3.190.0040.00417.27
8.3.180.0110.00818.54
8.3.170.0090.00618.70
8.3.160.0110.00718.05
8.3.150.0110.00318.65
8.3.140.0060.00316.91
8.3.130.0040.00416.46
8.3.120.0090.00918.53
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0110.00826.77
8.3.80.0060.00316.38
8.3.70.0060.01216.58
8.3.60.0150.00018.43
8.3.50.0090.00920.23
8.3.40.0100.01018.71
8.3.30.0110.00418.57
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0090.00320.29
8.2.280.0090.00718.47
8.2.270.0040.01216.61
8.2.260.0150.00318.69
8.2.250.0150.00018.44
8.2.240.0060.00916.93
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0080.00026.77
8.2.200.0030.00616.38
8.2.190.0120.00618.41
8.2.180.0170.00325.92
8.2.170.0060.00918.79
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00622.26
8.2.100.0000.01117.69
8.2.90.0040.00417.88
8.2.80.0000.00918.74
8.2.70.0080.00017.50
8.2.60.0040.00417.80
8.2.50.0070.00318.07
8.2.40.0030.00619.94
8.2.30.0040.00417.99
8.2.20.0080.00020.49
8.2.10.0000.00717.62
8.2.00.0090.00019.30
8.1.330.0080.01118.31
8.1.320.0120.00716.21
8.1.310.0070.00718.04
8.1.300.0080.01117.82
8.1.290.0030.00630.84
8.1.280.0140.00025.92
8.1.270.0040.00420.38
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00720.43
8.1.230.0070.00417.60
8.1.220.0040.00417.79
8.1.210.0110.00018.77
8.1.200.0030.00617.22
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0060.00318.64
8.1.160.0050.00218.69
8.1.150.0030.00618.61
8.1.140.0040.00417.23
8.1.130.0030.00320.24
8.1.120.0000.00717.39
8.1.110.0030.00317.35
8.1.100.0040.00417.32
8.1.90.0000.00817.38
8.1.80.0050.00317.39
8.1.70.0040.00417.41
8.1.60.0000.00817.55
8.1.50.0030.00517.49
8.1.40.0040.00417.34
8.1.30.0050.00317.53
8.1.20.0030.00917.53
8.1.10.0040.00917.42
8.1.00.0110.00017.31
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00920.05
8.0.270.0030.00317.96
8.0.260.0030.00318.30
8.0.250.0040.00416.96
8.0.240.0040.00416.97
8.0.230.0030.00316.92
8.0.220.0060.00016.78
8.0.210.0090.00016.91
8.0.200.0040.00416.96
8.0.190.0080.00016.91
8.0.180.0040.00416.92
8.0.170.0090.00016.96
8.0.160.0000.00716.89
8.0.150.0070.00516.66
8.0.140.0070.00716.76
8.0.130.0080.00316.70
8.0.120.0120.00016.76
8.0.110.0130.00416.83
8.0.100.0140.00016.71
8.0.90.0130.00616.80
8.0.80.0220.01016.75
8.0.70.0100.00316.68
8.0.60.0090.00616.73
8.0.50.0050.00816.79
8.0.30.0060.00916.89
8.0.20.0070.00716.87
8.0.10.0120.00616.78
7.4.330.0050.00015.55
7.4.320.0000.00616.33
7.4.300.0060.00316.21
7.4.290.0060.00016.47
7.4.280.0060.00316.57
7.4.270.0230.00016.40
7.4.260.0050.01016.39
7.4.250.0190.00816.43
7.4.240.0160.01116.41
7.4.230.0230.00516.47
7.4.220.0240.00516.45
7.4.210.0220.00316.35
7.4.200.0200.00516.36
7.4.190.0160.00316.55
7.4.180.0150.00416.44
7.4.160.0140.00416.51
7.4.150.0130.00816.41
7.4.140.0190.00016.35
7.4.130.0100.01016.18
7.4.120.0050.01616.18
7.4.110.0170.00716.43
7.4.100.0150.00416.32
7.4.90.0160.00416.24
7.4.80.0120.00916.20
7.4.70.0130.00716.05
7.4.60.0150.00616.38
7.4.50.0200.00016.29
7.4.40.0180.00316.27
7.4.30.0210.00016.20
7.4.20.0140.00516.33
7.4.10.0130.00816.34
7.4.00.0160.00516.32

preferences:
25.37 ms | 403 KiB | 5 Q