3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fillable = ['id', 'name', 'hello']; for($i = 0; $i < 1000; $i++) { $fields = array_intersect_key(['id' => 1], array_flip((array)$fillable)); }

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.60.0110.00716.38
8.3.50.0170.00318.29
8.3.40.0140.00418.63
8.3.30.0070.00718.63
8.3.20.0040.00421.77
8.3.10.0040.00421.59
8.3.00.0030.00517.55
8.2.180.0070.00716.38
8.2.170.0130.00322.96
8.2.160.0040.01122.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00219.39
8.2.120.0040.00426.35
8.2.110.0090.00020.93
8.2.100.0120.00017.78
8.2.90.0040.00417.84
8.2.80.0050.00318.03
8.2.70.0080.00017.80
8.2.60.0080.00017.80
8.2.50.0000.00818.10
8.2.40.0060.00319.05
8.2.30.0030.00619.22
8.2.20.0040.00418.03
8.2.10.0000.00718.15
8.2.00.0040.00417.94
8.1.280.0150.00325.92
8.1.270.0040.00423.71
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0000.00823.91
8.1.230.0040.00822.72
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0040.00417.10
8.1.190.0030.00517.13
8.1.180.0030.00718.10
8.1.170.0050.00318.50
8.1.160.0050.00318.81
8.1.150.0000.00818.94
8.1.140.0050.00217.54
8.1.130.0030.00620.79
8.1.120.0070.00017.30
8.1.110.0000.00717.41
8.1.100.0080.00017.37
8.1.90.0050.00217.35
8.1.80.0020.00517.27
8.1.70.0030.00517.30
8.1.60.0040.00417.64
8.1.50.0000.00817.46
8.1.40.0000.00817.46
8.1.30.0080.00017.65
8.1.20.0000.00817.53
8.1.10.0050.00317.34
8.1.00.0040.00417.38
8.0.300.0050.00319.76
8.0.290.0000.00916.75
8.0.280.0040.00418.33
8.0.270.0070.00217.20
8.0.260.0070.00017.18
8.0.250.0000.01116.91
8.0.240.0000.00716.86
8.0.230.0040.00416.84
8.0.220.0000.00716.89
8.0.210.0040.00416.88
8.0.200.0000.00716.77
8.0.190.0000.00716.75
8.0.180.0070.00016.82
8.0.170.0090.00016.85
8.0.160.0000.00716.83
8.0.150.0040.00416.74
8.0.140.0040.00416.80
8.0.130.0000.00513.30
8.0.120.0040.00416.68
8.0.110.0040.00416.85
8.0.100.0050.00316.64
8.0.90.0030.00416.93
8.0.80.0060.01616.86
8.0.70.0000.00716.87
8.0.60.0000.00716.71
8.0.50.0040.00416.74
8.0.30.0080.01217.10
8.0.20.0120.01017.40
8.0.10.0040.00416.84
8.0.00.0150.00316.71
7.4.330.0000.00516.71
7.4.320.0040.00416.50
7.4.300.0030.00316.45
7.4.290.0030.00316.51
7.4.280.0040.00416.63
7.4.270.0030.00316.52
7.4.260.0070.00016.38
7.4.250.0040.00316.57
7.4.240.0020.00516.52
7.4.230.0000.00716.45
7.4.220.0040.00416.50
7.4.210.0080.00816.57
7.4.200.0000.00716.42
7.4.160.0080.00816.51
7.4.140.0090.00817.86
7.4.130.0130.00916.32
7.4.120.0100.00816.48
7.4.110.0060.01216.48
7.4.100.0070.01416.32
7.4.90.0080.00916.25
7.4.80.0120.00919.39
7.4.70.0110.00716.58
7.4.60.0030.01616.44
7.4.50.0040.01516.36
7.4.40.0130.00316.39
7.4.00.0090.00914.90
7.3.330.0060.00313.02
7.3.320.0030.00313.10
7.3.310.0040.00416.16
7.3.300.0040.00416.31
7.3.290.0030.00316.30
7.3.280.0020.01316.25
7.3.260.0100.01116.30
7.3.240.0070.01116.38
7.3.230.0150.00616.31
7.3.210.0100.00716.32
7.3.200.0030.01316.32
7.3.190.0060.00916.53
7.3.180.0070.01416.64
7.3.170.0080.00816.27
7.3.160.0120.00616.54
7.3.120.0070.00714.92
7.3.110.0110.00715.04
7.3.100.0060.00614.98
7.3.90.0030.01314.75
7.3.80.0060.01014.75
7.3.70.0110.00414.84
7.3.60.0070.00714.86
7.3.50.0070.01014.84
7.3.40.0070.01014.59
7.3.30.0000.01214.61
7.3.20.0070.00316.58
7.3.10.0030.01316.77
7.3.00.0000.01616.70
7.2.330.0130.01016.79
7.2.320.0060.01716.41
7.2.310.0100.01316.33
7.2.300.0050.01016.66
7.2.290.0110.00716.67
7.2.250.0060.01214.88
7.2.240.0030.01214.79
7.2.230.0080.00615.09
7.2.220.0030.01615.00
7.2.210.0030.01014.96
7.2.200.0120.00014.99
7.2.190.0060.00615.09
7.2.180.0070.00715.08
7.2.170.0040.01214.96
7.2.40.0070.01417.59
7.2.30.0990.00718.16
7.2.20.1080.01117.98
7.2.10.0940.01118.11
7.2.00.0980.01118.05
7.1.330.0070.00715.63
7.1.320.0080.00415.99
7.1.310.0080.00815.71
7.1.300.0100.00315.45
7.1.290.0000.01515.40
7.1.280.0000.01515.51
7.1.270.0040.01115.85
7.1.260.0080.00515.52
7.1.200.0060.00315.63
7.1.160.1080.01016.75
7.1.150.0940.01316.64
7.1.140.0960.01516.95
7.1.130.0940.01116.88
7.1.120.1080.01016.80
7.1.110.0770.01116.12
7.1.100.0930.01416.29
7.1.90.1350.01116.24
7.1.80.1060.00816.21
7.1.70.0070.01115.40
7.1.60.0490.01733.26
7.1.50.1020.02032.93
7.1.40.1430.01432.30
7.1.30.1100.01132.62
7.1.20.1940.01832.89
7.1.10.1420.01414.60
7.1.00.0840.01314.73

preferences:
75.54 ms | 401 KiB | 5 Q