3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ [ 'slug' => 'products-services-pricing', 'text' => 'Products/Services and Pricing', ], [ 'slug' => 'promotions-plan', 'text' => 'Promotions Plan', ], ...(1 == 1) ? [ ['slug' => 'distribution-plan', 'text' => 'Distribution Plan'] ] : [], ]; var_export($arr); echo "\n---\n"; $arr = [ [ 'slug' => 'products-services-pricing', 'text' => 'Products/Services and Pricing', ], [ 'slug' => 'promotions-plan', 'text' => 'Promotions Plan', ], ...(1 == 2) ? [ ['slug' => 'distribution-plan', 'text' => 'Distribution Plan'] ] : [], ]; var_export($arr);

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.70.0120.00818.43
8.5.60.0040.00418.43
8.5.50.0070.00716.67
8.5.30.0100.00819.34
8.5.20.0100.00819.42
8.5.10.0110.00820.25
8.5.00.0150.00719.85
8.4.210.0080.00319.53
8.4.180.0130.01023.85
8.4.170.0140.00923.81
8.4.160.0150.00723.75
8.4.150.0090.00316.78
8.4.140.0140.01117.77
8.4.130.0080.00317.97
8.4.120.0110.00920.46
8.4.110.0040.00418.72
8.4.100.0140.00717.69
8.4.90.0120.00820.43
8.4.80.0130.00619.07
8.4.70.0050.00518.84
8.4.60.0140.00820.38
8.4.50.0110.00920.32
8.4.40.0080.00019.38
8.4.30.0150.00418.84
8.4.20.0030.01717.87
8.4.10.0070.00422.18
8.3.300.0130.00820.78
8.3.290.0140.00920.62
8.3.280.0120.00918.30
8.3.270.0120.00716.56
8.3.260.0040.00416.39
8.3.250.0050.00318.87
8.3.240.0060.00416.40
8.3.230.0130.00716.70
8.3.220.0090.00918.69
8.3.210.0100.01018.38
8.3.200.0040.00516.60
8.3.190.0050.00418.77
8.3.180.0060.00322.75
8.3.170.0100.00718.91
8.3.160.0090.00917.02
8.3.150.0040.00417.13
8.3.140.0070.01116.42
8.3.130.0030.00616.48
8.3.120.0060.00318.91
8.3.110.0060.00320.94
8.3.100.0050.00324.06
8.3.90.0030.00526.77
8.3.80.0030.00618.43
8.3.70.0040.01116.58
8.3.60.0150.00416.38
8.3.50.0070.01020.34
8.3.40.0140.00719.94
8.3.30.0040.01118.72
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0050.00226.16
8.2.300.0140.00718.07
8.2.290.0090.01017.07
8.2.280.0100.01018.31
8.2.270.0110.00717.29
8.2.260.0080.00017.24
8.2.250.0080.00016.71
8.2.240.0030.00617.27
8.2.230.0070.00322.58
8.2.220.0050.00337.54
8.2.210.0110.00726.77
8.2.200.0080.00016.63
8.2.190.0040.01118.17
8.2.180.0030.01425.92
8.2.170.0090.00618.67
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0060.00320.35
8.2.100.0040.00717.91
8.2.90.0040.00419.23
8.2.80.0040.00418.43
8.2.70.0050.00317.50
8.2.60.0060.00318.05
8.2.50.0050.00318.07
8.2.40.0050.00217.96
8.2.30.0000.00718.00
8.2.20.0080.00020.66
8.2.10.0070.00018.08
8.2.00.0000.00719.05
8.1.340.0110.00921.67
8.1.330.0140.00615.92
8.1.320.0110.00415.86
8.1.310.0030.00616.46
8.1.300.0200.00018.35
8.1.290.0000.01030.84
8.1.280.0170.00325.92
8.1.270.0060.00323.82
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.77
8.1.230.0040.00720.89
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0050.00517.13
8.1.190.0050.00517.23
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0040.00418.70
8.1.150.0000.00818.58
8.1.140.0040.00417.34
8.1.130.0040.00417.40
8.1.120.0050.01017.28
8.1.110.0070.00517.43
8.1.100.0050.00917.39
8.1.90.0150.00017.45
8.1.80.0120.00017.43
8.1.70.0080.00417.37
8.1.60.0080.00417.59
8.1.50.0130.00317.42
8.1.40.0180.00017.54
8.1.30.0150.00317.63
8.1.20.0180.00017.45
8.1.10.0130.00617.46
8.1.00.0100.00817.46
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0030.00318.11
8.0.260.0030.00316.82
8.0.250.0120.00316.77
8.0.240.0110.00416.88
8.0.230.0070.00716.77
8.0.220.0090.00616.71
8.0.210.0060.00916.75
8.0.200.0080.00616.82
8.0.190.0090.00316.80
8.0.180.0120.00316.70
8.0.170.0140.00016.86
8.0.160.0130.00016.81
8.0.150.0100.00516.76
8.0.140.0090.00516.67
8.0.130.0160.00016.80
8.0.120.0120.00416.75
8.0.110.0070.00716.75
8.0.100.0080.00816.76
8.0.90.0090.00616.70
8.0.80.0070.00716.75
8.0.70.0080.00816.61
8.0.60.0120.00216.68
8.0.50.0100.00416.75
8.0.30.0080.00816.75
8.0.20.0120.00416.81
8.0.10.0070.00716.78
7.4.330.0030.00314.74
7.4.320.0120.00416.39
7.4.300.0120.00416.46
7.4.290.0110.00616.41
7.4.280.0060.00616.27
7.4.270.0090.00616.34
7.4.260.0120.00416.39
7.4.250.0170.00016.29
7.4.240.0130.00416.41
7.4.230.0090.00916.29
7.4.220.0080.00816.41
7.4.210.0120.00316.36
7.4.200.0120.00216.46
7.4.190.0150.00016.38
7.4.180.0080.00816.47
7.4.160.0070.00716.47
7.4.150.0070.00716.51
7.4.140.0040.00716.30
7.4.130.0060.00616.27
7.4.120.0120.00016.31
7.4.110.0110.00016.34
7.4.100.0090.00216.32
7.4.90.0070.00316.27
7.4.80.0080.00416.22
7.4.70.0130.00316.34
7.4.60.0120.00016.27
7.4.50.0070.00416.15
7.4.40.0100.00316.33
7.4.30.0060.00616.25
7.4.20.0100.00216.22
7.4.10.0070.00716.28
7.4.00.0070.00716.34

preferences:
53.98 ms | 1358 KiB | 5 Q