3v4l.org

run code in 500+ PHP versions simultaneously
<?php $headings = ['first name', 'last name']; $example_post = ['first_name' => 'bob', 'last_name' => 'marley', 'submit' => ' ']; foreach($headings as $header) { foreach($example_post as $k => $v) { if($k == 'submit') continue; echo $header . ' = ' . $v . '/'; } }

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.0110.00621.86
8.5.20.0090.00919.97
8.5.10.0100.00620.08
8.5.00.0110.01520.21
8.4.180.0130.00819.58
8.4.170.0060.01423.90
8.4.160.0140.00719.73
8.4.150.0060.00716.83
8.4.140.0150.00617.50
8.4.130.0110.01018.03
8.4.120.0150.00522.50
8.4.110.0070.00618.62
8.4.100.0110.00917.68
8.4.90.0110.00918.59
8.4.80.0110.00719.50
8.4.70.0140.00717.72
8.4.60.0140.00718.40
8.4.50.0060.00517.72
8.4.40.0120.00817.43
8.4.30.0040.00419.58
8.4.20.0100.01017.74
8.4.10.0100.01019.38
8.3.300.0120.00820.86
8.3.290.0140.00718.27
8.3.280.0080.01218.18
8.3.270.0120.00716.55
8.3.260.0110.00616.63
8.3.250.0110.00718.79
8.3.240.0120.00516.55
8.3.230.0100.00916.72
8.3.220.0080.00717.31
8.3.210.0120.00716.67
8.3.200.0080.00616.56
8.3.190.0160.00618.82
8.3.180.0150.00416.50
8.3.170.0140.00418.88
8.3.160.0070.01116.60
8.3.150.0090.00919.08
8.3.140.0070.00716.49
8.3.130.0040.00418.35
8.3.120.0000.00818.83
8.3.110.0030.00620.94
8.3.100.0030.00624.06
8.3.90.0040.01426.77
8.3.80.0060.00316.50
8.3.70.0180.00016.63
8.3.60.0070.00716.36
8.3.50.0120.00622.04
8.3.40.0090.01218.71
8.3.30.0070.00718.77
8.3.20.0040.00418.60
8.3.10.0030.00623.65
8.3.00.0070.00320.77
8.2.300.0100.00921.99
8.2.290.0130.00522.05
8.2.280.0130.00519.86
8.2.270.0130.00617.10
8.2.260.0170.00018.82
8.2.250.0040.00418.79
8.2.240.0060.01218.67
8.2.230.0120.00322.58
8.2.220.0060.01337.54
8.2.210.0110.00726.77
8.2.200.0100.00016.63
8.2.190.0070.00716.58
8.2.180.0000.01416.75
8.2.170.0070.01422.96
8.2.160.0150.00020.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.00
8.2.110.0090.00022.08
8.2.100.0080.00417.84
8.2.90.0000.00920.60
8.2.80.0030.00618.04
8.2.70.0060.00317.93
8.2.60.0070.00018.09
8.2.50.0030.00618.22
8.2.40.0080.00020.33
8.2.30.0000.00719.34
8.2.20.0000.00717.98
8.2.10.0050.00218.04
8.2.00.0000.00717.63
8.1.340.0120.01019.90
8.1.330.0130.00522.13
8.1.320.0110.00916.05
8.1.310.0040.00716.77
8.1.300.0140.00716.80
8.1.290.0060.00318.88
8.1.280.0100.00725.92
8.1.270.0080.00022.02
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00323.89
8.1.230.0110.00020.90
8.1.220.0040.00417.74
8.1.210.0000.00818.91
8.1.200.0030.00517.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0080.00018.65
8.1.160.0040.00420.73
8.1.150.0070.00022.08
8.1.140.0000.00719.59
8.1.130.0040.00417.62
8.1.120.0050.00217.50
8.1.110.0030.00517.34
8.1.100.0030.00517.40
8.1.90.0000.00717.38
8.1.80.0070.00017.46
8.1.70.0050.00317.39
8.1.60.0030.00517.59
8.1.50.0060.00317.59
8.1.40.0080.00017.54
8.1.30.0060.00317.69
8.1.20.0000.00817.57
8.1.10.0040.00417.44
8.1.00.0000.00717.45
8.0.300.0000.01019.95
8.0.290.0000.00716.75
8.0.280.0030.00318.39
8.0.270.0000.00716.74
8.0.260.0030.00717.28
8.0.250.0030.00316.97
8.0.240.0030.00316.86
8.0.230.0050.00216.92
8.0.220.0070.00416.92
8.0.210.0030.00316.77
8.0.200.0000.00816.97
8.0.190.0060.00316.95
8.0.180.0080.00016.88
8.0.170.0070.00016.97
8.0.160.0030.00616.75
8.0.150.0040.00416.93
8.0.140.0000.00716.85
8.0.130.0000.00513.33
8.0.120.0040.00416.78
8.0.110.0030.00516.94
8.0.100.0040.00316.92
8.0.90.0040.00416.96
8.0.80.0120.00416.86
8.0.70.0000.00816.96
8.0.60.0050.00216.86
8.0.50.0070.00016.82
8.0.30.0100.01016.98
8.0.20.0090.01217.40
8.0.10.0020.00516.91
8.0.00.0060.01716.91
7.4.330.0060.00015.55
7.4.320.0060.00016.50
7.4.300.0030.00316.46
7.4.290.0080.00016.58
7.4.280.0000.00816.49
7.4.270.0030.00316.41
7.4.260.0040.00416.59
7.4.250.0000.00816.43
7.4.240.0030.00316.42
7.4.230.0040.00416.46
7.4.220.0090.01516.68
7.4.210.0040.01216.63
7.4.200.0070.00016.61
7.4.160.0110.00716.49
7.4.150.0120.00817.40
7.4.140.0110.00917.86
7.4.130.0110.00716.63
7.4.120.0070.01116.54
7.4.110.0110.00716.32
7.4.100.0040.01216.46
7.4.90.0120.00616.65
7.4.80.0130.00319.39
7.4.70.0090.00616.59
7.4.60.0030.01316.75
7.4.50.0080.00616.66
7.4.40.0060.01116.50
7.4.30.0070.01416.37
7.4.10.0110.00814.76
7.4.00.0070.00715.02
7.3.330.0000.00613.10
7.3.320.0000.00613.20
7.3.310.0030.00316.23
7.3.300.0070.00016.31
7.3.290.0070.00016.34
7.3.280.0070.01016.29
7.3.270.0120.00617.40
7.3.260.0130.00716.46
7.3.250.0090.00816.37
7.3.240.0100.01116.36
7.3.230.0090.00916.43
7.3.210.0100.00616.38
7.3.200.0070.01016.32
7.3.190.0030.01716.31
7.3.180.0160.00616.62
7.3.170.0100.00716.52
7.3.160.0030.01216.51
7.3.130.0030.01314.93
7.3.120.0030.01314.98
7.3.110.0030.01514.79
7.3.100.0060.00915.03
7.3.90.0000.01415.02
7.3.80.0000.00914.90
7.3.70.0030.00614.66
7.3.60.0030.00814.88
7.3.50.0060.00614.84
7.3.40.0000.01714.71
7.3.30.0030.00714.65
7.3.20.0030.00616.68
7.3.10.0040.00816.72
7.3.00.0030.01016.71
7.2.330.0060.01216.22
7.2.320.0120.00316.49
7.2.310.0060.01216.61
7.2.300.0070.01116.64
7.2.290.0070.01016.84
7.2.260.0070.01015.01
7.2.250.0120.00614.65
7.2.240.0040.00815.16
7.2.230.0140.00014.93
7.2.220.0140.00415.23
7.2.210.0000.01514.88
7.2.200.0070.00715.09
7.2.190.0030.01215.02
7.2.180.0030.00815.18
7.2.170.0040.00715.04
7.2.160.0000.01615.17
7.2.150.0040.00517.02
7.2.140.0070.01016.90
7.2.130.0060.00616.86
7.2.120.0030.01016.90
7.2.110.0070.00317.01
7.2.100.0040.00916.82
7.2.90.0060.00616.84
7.2.80.0060.00416.82
7.2.70.0050.00517.07
7.2.60.0060.00617.02
7.2.50.0050.01016.94
7.2.40.0020.00917.04
7.2.30.0050.00716.96
7.2.20.0050.00516.87
7.2.10.0080.00616.94
7.2.00.0050.01216.94
7.1.330.0040.01115.89
7.1.320.0000.00915.89
7.1.310.0040.01115.64
7.1.300.0050.00815.79
7.1.290.0100.00315.64
7.1.280.0070.00415.82
7.1.270.0040.00815.85
7.1.260.0040.00415.73
7.1.250.0080.00315.62
7.1.240.0070.00315.73
7.1.230.0090.00315.73
7.1.220.0050.00615.74
7.1.210.0050.00815.71
7.1.200.0050.00815.73
7.1.190.0050.00715.60
7.1.180.0090.00215.59
7.1.170.0060.00615.66
7.1.160.0080.00315.81
7.1.150.0050.00915.54
7.1.140.0090.00215.54
7.1.130.0060.00615.75
7.1.120.0030.01015.57
7.1.110.0030.00815.82
7.1.100.0070.00615.75
7.1.90.0080.00715.75
7.1.80.0020.01015.75
7.1.70.0050.00716.19
7.1.60.0050.00516.13
7.1.50.0050.00715.51
7.1.40.0020.00915.78
7.1.30.0080.00415.71
7.1.20.0030.01015.59
7.1.10.0050.00715.64
7.1.00.0060.03117.97
7.0.330.0030.00615.34
7.0.320.0060.00415.27
7.0.310.0050.00715.35
7.0.300.0080.00315.46
7.0.290.0080.00515.27
7.0.280.0050.00515.36
7.0.270.0060.00415.19
7.0.260.0100.00215.38
7.0.250.0030.00715.39
7.0.240.0050.00615.32
7.0.230.0050.00715.34
7.0.220.0060.00715.52
7.0.210.0050.00715.36
7.0.200.0060.00515.16
7.0.190.0040.00615.19
7.0.180.0050.00415.39
7.0.170.0030.00915.23
7.0.160.0050.00715.47
7.0.150.0050.00615.41
7.0.140.0050.01015.47
7.0.130.0040.02417.69
7.0.120.0060.02417.72
7.0.110.0060.02417.59
7.0.100.0030.02417.64
7.0.90.0050.02617.59
7.0.80.0080.02117.46
7.0.70.0040.02717.71
7.0.60.0030.02717.74
7.0.50.0090.02517.70
7.0.40.0060.02516.50
7.0.30.0060.02416.27
7.0.20.0070.02216.24
7.0.10.0060.02416.41
7.0.00.0080.02316.32
5.6.400.0120.00014.70
5.6.390.0060.01014.32
5.6.380.0070.00414.32
5.6.370.0040.00914.26
5.6.360.0030.01014.42
5.6.350.0000.00814.40
5.6.340.0050.00814.26
5.6.330.0070.00914.24
5.6.320.0050.00514.20
5.6.310.0030.00714.44
5.6.300.0080.00614.24
5.6.290.0050.00514.05
5.6.280.0070.02316.46
5.6.270.0070.02216.46
5.6.260.0080.02116.76
5.6.250.0040.02416.45
5.6.240.0040.02716.48
5.6.230.0040.02716.53
5.6.220.0090.02516.49
5.6.210.0040.02516.39
5.6.200.0050.02416.50
5.6.190.0080.02516.57
5.6.180.0090.02216.41
5.6.170.0080.02716.60
5.6.160.0060.02416.49
5.6.150.0060.02516.35
5.6.140.0060.02516.40
5.6.130.0080.02316.62
5.6.120.0070.02416.49
5.6.110.0100.02216.57
5.6.100.0060.02416.36
5.6.90.0050.02416.55
5.6.80.0040.02716.20
5.6.70.0050.02516.36
5.6.60.0040.02516.27
5.6.50.0060.02216.24
5.6.40.0020.02716.20
5.6.30.0060.02416.35
5.6.20.0060.02416.29
5.6.10.0110.01916.17
5.6.00.0090.02016.28

preferences:
125.34 ms | 1960 KiB | 5 Q