3v4l.org

run code in 300+ PHP versions simultaneously
<?php $events = [ [ 'categoryId' => 1, 'eventId' => 2, 'eventName' => 3, 'vendorName' => 4 ], [ 'categoryId' => 5, 'eventId' => 6, 'eventName' => 7, 'vendorName' => 8 ], [ 'categoryId' => 9, 'eventId' => 10, 'eventName' => 11, 'vendorName' => 12 ], ]; print_r(array_column($events, 'categoryId'));

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.20.0000.01519.14
8.4.10.0050.00519.17
8.3.150.0120.00616.82
8.3.140.0090.00617.10
8.3.130.0060.00318.32
8.3.120.0060.00320.58
8.3.110.0080.00016.78
8.3.100.0120.00324.06
8.3.90.0070.01426.77
8.3.80.0060.00317.97
8.3.70.0040.01816.63
8.3.60.0070.00716.75
8.3.50.0090.00922.10
8.3.40.0110.00418.75
8.3.30.0040.01118.54
8.3.20.0080.00018.71
8.3.10.0070.00021.90
8.3.00.0040.00421.86
8.2.260.0110.00718.66
8.2.250.0040.00418.28
8.2.240.0070.01017.15
8.2.230.0080.00022.58
8.2.220.0070.01037.54
8.2.210.0030.00626.77
8.2.200.0060.00318.04
8.2.190.0070.01416.58
8.2.180.0120.00618.41
8.2.170.0100.01022.96
8.2.160.0070.00719.16
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.84
8.2.110.0060.00319.33
8.2.100.0070.00417.72
8.2.90.0000.00917.63
8.2.80.0060.00317.97
8.2.70.0040.00417.80
8.2.60.0040.00418.09
8.2.50.0000.00818.10
8.2.40.0040.00419.34
8.2.30.0040.00419.18
8.2.20.0000.00818.00
8.2.10.0050.00218.05
8.2.00.0040.00417.61
8.1.310.0060.00916.80
8.1.300.0170.00316.20
8.1.290.0040.00730.84
8.1.280.0110.00725.92
8.1.270.0070.01123.86
8.1.260.0160.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00019.11
8.1.230.0080.00420.85
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0000.00718.51
8.1.160.0030.00618.82
8.1.150.0000.00718.55
8.1.140.0000.00719.43
8.1.130.0030.00517.36
8.1.120.0000.00917.32
8.1.110.0040.00417.39
8.1.100.0040.00417.27
8.1.90.0060.00317.29
8.1.80.0040.00417.37
8.1.70.0040.00417.32
8.1.60.0050.00317.55
8.1.50.0040.00417.32
8.1.40.0030.00617.41
8.1.30.0040.00417.52
8.1.20.0000.00817.52
8.1.10.0000.00717.51
8.1.00.0040.00417.40
8.0.300.0000.00719.86
8.0.290.0070.00416.63
8.0.280.0080.00018.30
8.0.270.0070.00017.25
8.0.260.0070.00016.65
8.0.250.0030.00316.79
8.0.240.0000.00616.78
8.0.230.0090.00016.92
8.0.220.0040.00416.72
8.0.210.0030.00516.76
8.0.200.0070.00016.93
8.0.190.0110.00016.88
8.0.180.0000.01016.82
8.0.170.0000.00716.77
8.0.160.0000.00716.83
8.0.150.0070.00016.65
8.0.140.0000.00816.71
8.0.130.0030.00313.29
8.0.120.0080.00016.73
8.0.110.0040.00416.88
8.0.100.0040.00416.82
8.0.90.0000.00716.78
8.0.80.0070.01416.82
8.0.70.0040.00416.77
8.0.60.0040.00416.90
8.0.50.0030.00516.65
8.0.30.0110.00616.89
8.0.20.0120.01517.40
8.0.10.0030.00616.87
8.0.00.0100.00716.69
7.4.330.0030.00315.55
7.4.320.0030.00316.57
7.4.300.0000.00716.53
7.4.290.0080.00016.54
7.4.280.0060.00316.57
7.4.270.0030.00316.50
7.4.260.0040.00416.36
7.4.250.0030.00316.32
7.4.240.0040.00316.40
7.4.230.0000.00716.32
7.4.220.0070.01616.46
7.4.210.0060.00916.36
7.4.200.0070.00016.61
7.4.160.0040.01116.42
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0130.01116.46
7.4.120.0130.00716.38
7.4.110.0120.00616.44
7.4.100.0120.00616.29
7.4.90.0130.01416.27
7.4.80.0040.01419.39
7.4.70.0070.00716.35
7.4.60.0090.00616.16
7.4.50.0040.01116.57
7.4.40.0140.00316.41
7.4.30.0030.01416.50
7.4.00.0040.01214.87
7.3.330.0050.00312.94
7.3.320.0020.00212.88
7.3.310.0000.00616.09
7.3.300.0060.00016.12
7.3.290.0080.00816.09
7.3.280.0090.00816.13
7.3.270.0070.01117.40
7.3.260.0120.00616.45
7.3.250.0070.01116.09
7.3.240.0050.01516.35
7.3.230.0080.00816.46
7.3.210.0100.01416.30
7.3.200.0130.00316.14
7.3.190.0090.00616.59
7.3.180.0130.00316.26
7.3.170.0120.00916.24
7.3.160.0140.01216.25
7.3.120.0070.01014.52
7.3.110.0090.00914.36
7.3.100.0050.01014.55
7.3.90.0060.00614.85
7.3.80.0030.00614.65
7.3.70.0050.00914.56
7.3.60.0060.00914.66
7.3.50.0040.01014.49
7.3.40.0070.00714.53
7.3.30.0030.00914.67
7.3.20.0090.00616.38
7.3.10.0050.01116.38
7.3.00.0070.00416.28
7.2.330.0070.01416.36
7.2.320.0060.01216.24
7.2.310.0100.00616.53
7.2.300.0090.00816.57
7.2.290.0060.00916.22
7.2.250.0080.01114.90
7.2.240.0070.00914.89
7.2.230.0050.00914.77
7.2.220.0100.00314.83
7.2.210.0050.00814.71
7.2.200.0050.01114.77
7.2.190.0060.01014.78
7.2.180.0080.00614.72
7.2.170.0030.01014.79
7.2.60.0070.00316.57
7.1.330.0070.00915.81
7.1.320.0050.01015.66
7.1.310.0020.01415.76
7.1.300.0050.00915.72
7.1.290.0070.00715.62
7.1.280.0040.00915.72
7.1.270.0030.01015.55
7.1.260.0020.01215.87
7.1.200.0140.00015.63
7.1.70.0000.00717.07
7.1.60.0030.00717.28
7.1.00.0030.07322.30
7.0.200.0170.00614.81
7.0.120.0100.05322.15
7.0.110.0030.06322.08
7.0.100.0170.05322.12
7.0.90.0130.05722.11
7.0.80.0100.05722.09
7.0.70.0070.06321.97
7.0.60.0070.06322.08
7.0.50.0130.05322.10
7.0.40.0100.05322.11
7.0.30.0030.06022.08
7.0.20.0130.05322.11
7.0.10.0130.05321.99
7.0.00.0070.05722.19
5.6.270.0170.05020.87
5.6.260.0130.05321.04
5.6.250.0130.04720.82
5.6.240.0130.07721.10
5.6.230.0100.07720.82
5.6.220.0100.06020.78
5.6.210.0100.05720.96
5.6.200.0070.06020.94
5.6.190.0170.06020.82
5.6.180.0100.05321.06
5.6.170.0100.05320.92
5.6.160.0070.05720.82
5.6.150.0100.06321.00
5.6.140.0100.05321.00
5.6.130.0100.05021.03
5.6.120.0070.05720.98
5.6.110.0000.06320.99
5.6.100.0070.05720.81
5.6.90.0070.05720.78
5.6.80.0100.04720.18
5.6.70.0130.05020.11
5.6.60.0100.05720.18
5.6.50.0030.05720.23
5.6.40.0070.06720.20
5.6.30.0100.06320.39
5.6.20.0170.04720.34
5.6.10.0130.05020.34
5.6.00.0100.05020.37

preferences:
74.05 ms | 403 KiB | 5 Q