3v4l.org

run code in 300+ PHP versions simultaneously
<?php function output(){ $array = [['name'=>'a'],['name'=>'b'],['name'=>'c']]; $output = '<div class="test">'; foreach($array as $a) { $output .= '<div class="testing">'.$a['name'].'</div>'; } $output .= '</div>'; echo $output; } echo output(); ?>

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.30.0090.00917.39
8.5.20.0090.00819.93
8.5.10.0120.00716.81
8.5.00.0100.01120.08
8.4.180.0100.01119.69
8.4.170.0140.00724.01
8.4.160.0100.01123.75
8.4.150.0080.00416.90
8.4.140.0120.00917.32
8.4.130.0130.00717.48
8.4.120.0080.01120.61
8.4.110.0150.00618.66
8.4.100.0130.00718.86
8.4.90.0040.00720.57
8.4.80.0130.00818.48
8.4.70.0130.00717.61
8.4.60.0140.00717.73
8.4.50.0130.00419.36
8.4.40.0070.01417.36
8.4.30.0130.00720.43
8.4.20.0040.00424.15
8.4.10.0060.01222.49
8.3.300.0130.00720.75
8.3.290.0100.01020.70
8.3.280.0110.01318.35
8.3.270.0090.01116.54
8.3.260.0110.00916.57
8.3.250.0060.00318.95
8.3.240.0100.01016.51
8.3.230.0100.00816.70
8.3.220.0110.00719.06
8.3.210.0140.00416.67
8.3.200.0100.00916.79
8.3.190.0100.00918.64
8.3.180.0130.00616.33
8.3.170.0110.00316.60
8.3.160.0100.00719.23
8.3.150.0110.00716.98
8.3.140.0110.00716.43
8.3.130.0040.00416.78
8.3.120.0060.00320.84
8.3.110.0080.00020.94
8.3.100.0080.00018.16
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0040.01118.15
8.3.60.0140.00416.75
8.3.50.0110.00623.56
8.3.40.0000.01519.17
8.3.30.0130.00318.67
8.3.20.0030.00524.18
8.3.10.0030.00624.66
8.3.00.0080.00026.16
8.2.300.0100.01018.10
8.2.290.0100.00820.45
8.2.280.0120.00718.18
8.2.270.0160.00316.66
8.2.260.0110.00416.94
8.2.250.0120.00616.54
8.2.240.0060.01217.07
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0040.00418.88
8.2.190.0070.00716.63
8.2.180.0100.00725.92
8.2.170.0120.00318.96
8.2.160.0130.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00026.35
8.2.110.0090.00019.31
8.2.100.0090.00317.78
8.2.90.0030.00719.36
8.2.80.0000.00818.03
8.2.70.0000.00817.63
8.2.60.0090.00018.04
8.2.50.0030.00618.07
8.2.40.0080.00018.09
8.2.30.0000.00818.05
8.2.20.0070.00018.13
8.2.10.0030.00520.90
8.2.00.0070.00019.22
8.1.340.0130.00721.88
8.1.330.0040.00417.84
8.1.320.0130.00716.17
8.1.310.0040.00416.41
8.1.300.0030.00616.17
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0070.00023.99
8.1.260.0070.00028.09
8.1.250.0030.00628.09
8.1.240.0030.00622.67
8.1.230.0040.00817.71
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0090.00018.50
8.1.160.0000.00818.80
8.1.150.0000.00718.79
8.1.140.0000.00718.97
8.1.130.0000.00720.04
8.1.120.0040.00317.51
8.1.110.0040.00417.33
8.1.100.0000.00817.49
8.1.90.0040.00417.35
8.1.80.0040.00417.33
8.1.70.0000.00917.46
8.1.60.0040.00417.50
8.1.50.0000.00817.43
8.1.40.0060.00317.52
8.1.30.0080.00017.67
8.1.20.0000.00817.65
8.1.10.0050.00217.59
8.1.00.0070.00017.50
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.38
8.0.270.0100.00017.91
8.0.260.0030.00318.43
8.0.250.0040.00416.96
8.0.240.0030.00316.82
8.0.230.0070.00016.84
8.0.220.0000.00616.86
8.0.210.0000.00716.83
8.0.200.0070.00016.89
8.0.190.0000.00816.88
8.0.180.0000.00816.91
8.0.170.0040.00416.79
8.0.160.0040.00416.78
8.0.150.0000.00716.86
8.0.140.0110.00616.75
8.0.130.0000.00813.36
8.0.120.0050.00216.83
8.0.110.0000.00716.78
8.0.100.0000.00816.89
8.0.90.0060.00316.80
8.0.80.0080.00716.84
8.0.70.0000.00816.75
8.0.60.0040.00416.76
8.0.50.0040.00416.77
8.0.30.0040.01216.94
8.0.20.0120.00617.04
8.0.10.0000.00716.88
8.0.00.0040.01316.67
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0030.00316.49
7.4.290.0070.00016.49
7.4.280.0050.00316.62
7.4.270.0030.00316.56
7.4.260.0060.00013.27
7.4.250.0070.00016.52
7.4.240.0030.00316.46
7.4.230.0030.00316.30
7.4.220.0050.00216.69
7.4.210.0060.00916.57
7.4.200.0000.00716.67
7.4.130.0080.01016.46
7.4.120.0140.00716.51
7.4.110.0090.00916.48
7.4.100.0060.01016.49
7.4.90.0060.01016.49
7.4.80.0080.01319.39
7.4.70.0140.00616.38
7.4.60.0070.01016.49
7.4.50.0180.00316.50
7.4.40.0100.00716.44
7.4.30.0130.00316.44
7.4.20.0030.02016.54
7.4.10.0080.00916.49
7.4.00.0120.00616.46
7.3.330.0000.00716.24
7.3.320.0000.00513.22
7.3.310.0000.00616.39
7.3.300.0030.00316.32
7.3.290.0100.00916.27
7.3.280.0080.00816.27
7.3.260.0110.00816.35
7.3.240.0130.00616.43
7.3.230.0090.01216.60
7.3.210.0080.00916.30
7.3.200.0170.00316.32
7.3.190.0110.00416.35
7.3.180.0060.01016.56
7.3.170.0180.00416.33
7.3.160.0090.00916.47
7.3.150.0090.00916.51
7.3.140.0070.01516.34
7.3.130.0120.01016.35
7.3.120.0090.00916.53
7.3.110.0100.00716.38
7.3.100.0120.00616.37
7.3.90.0110.01116.58
7.3.80.0140.00716.43
7.3.70.0090.01216.48
7.3.60.0090.01216.53
7.3.50.0070.01116.32
7.3.40.0120.00816.39
7.3.30.0030.01316.45
7.3.20.0140.00416.39
7.3.10.0060.01216.31
7.3.00.0070.01516.34
7.2.330.0060.01216.57
7.2.320.0100.00716.52
7.2.310.0070.01116.59
7.2.300.0090.00916.64
7.2.290.0030.01416.60
7.2.280.0030.01516.51
7.2.270.0100.01316.72
7.2.260.0070.01716.59
7.2.250.0100.00716.79
7.2.240.0030.01416.73
7.2.230.0060.01616.71
7.2.220.0150.00416.61
7.2.210.0150.00616.43
7.2.200.0130.00916.65
7.2.190.0090.00916.64
7.2.180.0120.00916.71
7.2.170.0120.00616.44
7.2.160.0070.01016.52
7.2.150.0110.00716.83
7.2.140.0100.00716.63
7.2.130.0100.01416.65
7.2.120.0040.01416.70
7.2.110.0130.00616.54
7.2.100.0170.00316.70
7.2.90.0120.00616.56
7.2.80.0480.01016.58
7.2.70.0070.01016.84
7.2.60.0140.00316.53
7.2.50.0070.01016.79
7.2.40.0130.00316.66
7.2.30.0070.01016.75
7.2.20.0070.01416.55
7.2.10.0090.00916.60
7.2.00.0060.01216.70

preferences:
98.15 ms | 1511 KiB | 5 Q