3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rules() { $rules = []; $count=0; foreach ([1] as $item) { array_push($rules, array( $count=>[ 'name'=>'required|max:255', 'description'=>'required|max:9000' ] )); } return $rules; } var_dump($rules());

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.0060.01218.31
8.3.50.0110.01121.15
8.3.40.0070.01018.83
8.3.30.0110.00418.63
8.3.20.0070.00720.33
8.3.10.0000.00823.53
8.3.00.0040.00419.79
8.2.180.0110.00418.20
8.2.170.0000.01422.96
8.2.160.0070.01320.35
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0180.00026.16
8.2.120.0000.00917.63
8.2.110.0040.00722.25
8.2.100.0080.00317.50
8.2.90.0000.00819.05
8.2.80.0030.00517.97
8.2.70.0100.00017.63
8.2.60.0090.00017.80
8.2.50.0090.00018.07
8.2.40.0080.00019.46
8.2.30.0040.00417.88
8.2.20.0020.00517.74
8.2.10.0070.00018.04
8.2.00.0080.00017.91
8.1.280.0070.00725.92
8.1.270.0040.00420.33
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.36
8.1.230.0080.00417.42
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0040.00816.98
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0000.00818.51
8.1.160.0000.00721.82
8.1.150.0000.00718.67
8.1.140.0040.00417.30
8.1.130.0000.00717.61
8.1.120.0000.00717.28
8.1.110.0020.00517.30
8.1.100.0000.00817.31
8.1.90.0070.00017.34
8.1.80.0040.00417.34
8.1.70.0000.00717.35
8.1.60.0000.00817.44
8.1.50.0030.00617.33
8.1.40.0030.00517.48
8.1.30.0050.00317.59
8.1.20.0000.00817.46
8.1.10.0000.00717.50
8.1.00.0000.00717.37
8.0.300.0040.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.42
8.0.270.0070.00017.10
8.0.260.0070.00317.19
8.0.250.0040.00416.91
8.0.240.0030.00317.02
8.0.230.0040.00416.99
8.0.220.0030.00316.90
8.0.210.0060.00316.91
8.0.200.0030.00316.88
8.0.190.0050.00316.82
8.0.180.0030.00516.95
8.0.170.0050.00216.91
8.0.160.0030.00516.90
8.0.150.0000.00816.73
8.0.140.0000.00816.84
8.0.130.0000.00713.31
8.0.120.0040.00416.75
8.0.110.0000.00716.83
8.0.100.0040.00416.92
8.0.90.0040.00416.95
8.0.80.0120.00316.84
8.0.70.0040.00416.75
8.0.60.0040.00416.76
8.0.50.0040.00416.75
8.0.30.0080.01016.77
8.0.20.0090.00917.40
8.0.10.0040.00416.88
8.0.00.0110.00616.61
7.4.330.0050.00015.08
7.4.320.0050.00216.51
7.4.300.0040.00416.57
7.4.290.0060.00016.66
7.4.280.0040.00416.60
7.4.270.0000.00716.36
7.4.260.0070.00016.57
7.4.250.0030.00316.60
7.4.240.0000.00716.49
7.4.230.0030.00316.58
7.4.220.0160.00716.54
7.4.210.0050.01016.56
7.4.200.0070.00016.54
7.4.160.0060.00916.25
7.4.150.0110.00617.40
7.4.140.0090.01017.86
7.4.130.0100.00816.36
7.4.120.0110.00616.47
7.4.110.0100.00716.48
7.4.100.0130.01016.51
7.4.90.0000.01716.32
7.4.80.0090.00919.39
7.4.70.0170.00016.39
7.4.60.0130.00316.60
7.4.50.0000.00516.08
7.4.40.0120.00416.49
7.4.30.0060.01616.63
7.4.00.0060.00614.69
7.3.330.0000.00613.33
7.3.320.0050.00013.16
7.3.310.0030.00316.14
7.3.300.0000.00816.34
7.3.290.0030.00316.31
7.3.280.0080.00916.28
7.3.270.0070.01117.40
7.3.260.0070.01016.30
7.3.250.0080.00916.30
7.3.240.0080.00816.29
7.3.230.0060.01716.39
7.3.210.0060.01116.57
7.3.200.0150.00716.30
7.3.190.0170.00016.47
7.3.180.0120.00916.50
7.3.170.0170.00316.27
7.3.160.0130.00316.33
7.2.330.0220.02216.53
7.2.320.0100.01016.32
7.2.310.0110.00616.54
7.2.300.0030.01216.57
7.2.290.0070.01016.53
7.2.60.0030.01016.86
7.2.00.0030.00918.86
7.1.200.0090.00315.68
7.1.100.0100.00717.56
7.1.70.0080.00016.73
7.1.60.0100.01019.12
7.1.50.0060.01616.85
7.1.00.0000.08022.51
7.0.200.0120.00316.68
7.0.60.4330.03020.00
7.0.50.0100.07717.86
7.0.40.0030.09020.27
7.0.30.0400.06320.11
7.0.20.0470.06320.27
7.0.10.0000.07720.33
7.0.00.0100.06320.24
5.6.280.0000.03721.04
5.6.210.0030.05720.75
5.6.200.0130.07318.20
5.6.190.0070.04020.58
5.6.180.0370.07020.47
5.6.170.0230.08320.71
5.6.160.0130.05320.50
5.6.150.0070.08018.16
5.6.140.0100.04718.28
5.6.130.0000.06318.18
5.6.120.0030.09020.99
5.6.110.0000.07321.05
5.6.100.0030.04021.09
5.6.90.0030.06720.95
5.6.80.0100.06020.49
5.5.350.3630.04020.49
5.5.340.0130.07718.09
5.5.330.0070.04020.25
5.5.320.0200.04320.34
5.5.310.0330.05020.23
5.5.300.0130.07717.95
5.5.290.0070.04718.08
5.5.280.0130.04320.74
5.5.270.0070.07720.68
5.5.260.0070.04020.97
5.5.250.0130.08020.69
5.5.240.0170.08720.15
5.4.450.0700.05719.20
5.4.440.0700.05019.63
5.4.430.0700.05719.44
5.4.420.0600.05719.63
5.4.410.0600.05719.16
5.4.400.0600.05719.18
5.4.390.0730.06019.27
5.4.380.0700.05019.03
5.4.370.0730.04319.36
5.4.360.0630.06318.87
5.4.350.0730.04718.87
5.4.340.0700.05319.15
5.4.320.0730.05319.28
5.4.310.0500.06319.06
5.4.300.0930.08019.01
5.4.290.0930.07719.25
5.4.280.0800.04719.28
5.4.270.0770.06319.14
5.4.260.0700.05019.05
5.4.250.0730.04319.23
5.4.240.0700.05019.36
5.4.230.0730.05018.83
5.4.220.0630.05719.13
5.4.210.0730.04318.84
5.4.200.0970.04718.96
5.4.190.0930.05318.86
5.4.180.0830.05719.14
5.4.170.0730.06719.27
5.4.160.1000.06018.82
5.4.150.1100.06319.27
5.4.140.0830.06316.33
5.4.130.0700.04716.50
5.4.120.1230.05316.48
5.4.110.0770.04316.45
5.4.100.0570.06016.45
5.4.90.0670.05716.52
5.4.80.0800.05316.61
5.4.70.0400.05316.26
5.4.60.0100.03716.43
5.4.50.0070.03316.52
5.4.40.0030.06716.53
5.4.30.0030.07316.37
5.4.20.0000.06316.48

preferences:
31.39 ms | 401 KiB | 5 Q