3v4l.org

run code in 300+ PHP versions simultaneously
<?php // price matrix: first index is y-axis, second is x-axis $prices = [ 600 => [ 600 => 224, 700 => 246, 800 => 266, 900 => 291, 1000 => 313 ], // here you put the rest... ]; //then echo the table; echo "<table><tr>"; echo "<td></td>"; // first empty cell; foreach ($prices[array_keys($prices)[0]] as $y_axis => $xprices){ echo "<td>".$y_axis."</td>"; } echo "</tr>";//finish setting up the header foreach ($prices as $y_axis => $xprices) { echo "<tr>"; echo "<td>".$y_axis."</td>"; foreach($xprices as $y_axis=> $price){ echo "<td>".$price."</td>"; } echo "</tr>"; } echo "</table>";

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.70.0180.00418.30
8.3.60.0150.00718.18
8.3.50.0140.00721.92
8.3.40.0080.00818.67
8.3.30.0060.00918.67
8.3.20.0080.00019.96
8.3.10.0040.00420.65
8.3.00.0070.00021.93
8.2.190.0220.00416.58
8.2.180.0110.00716.59
8.2.170.0140.00022.96
8.2.160.0110.00622.17
8.2.150.0140.00325.66
8.2.140.0050.00324.66
8.2.130.0040.00419.32
8.2.120.0050.00326.16
8.2.110.0060.00320.57
8.2.100.0110.00017.72
8.2.90.0060.00317.75
8.2.80.0000.00818.78
8.2.70.0000.00818.00
8.2.60.0000.00818.22
8.2.50.0030.00518.10
8.2.40.0040.00419.37
8.2.30.0000.00719.28
8.2.20.0030.00517.80
8.2.10.0000.00818.19
8.2.00.0030.00518.19
8.1.280.0150.00025.92
8.1.270.0030.00621.94
8.1.260.0130.00726.35
8.1.250.0000.00828.09
8.1.240.0070.00323.78
8.1.230.0000.01121.00
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00518.48
8.1.160.0000.00719.02
8.1.150.0050.00218.90
8.1.140.0060.00317.37
8.1.130.0000.00717.63
8.1.120.0000.00717.39
8.1.110.0000.00817.54
8.1.100.0000.00817.55
8.1.90.0070.00017.49
8.1.80.0000.00717.51
8.1.70.0030.00517.38
8.1.60.0050.00217.48
8.1.50.0030.00517.55
8.1.40.0000.00817.42
8.1.30.0040.00417.66
8.1.20.0070.00017.52
8.1.10.0040.00417.50
8.1.00.0050.00317.56
8.0.300.0000.00718.77
8.0.290.0050.00416.63
8.0.280.0070.00018.59
8.0.270.0030.00316.83
8.0.260.0080.00017.27
8.0.250.0070.00016.82
8.0.240.0060.00317.01
8.0.230.0000.00716.87
8.0.220.0000.00716.84
8.0.210.0000.00716.89
8.0.200.0030.00316.86
8.0.190.0000.00816.88
8.0.180.0040.00416.80
8.0.170.0080.00016.91
8.0.160.0070.00016.91
8.0.150.0040.00416.71
8.0.140.0060.00316.83
8.0.130.0030.00313.31
8.0.120.0000.00816.75
8.0.110.0070.00016.86
8.0.100.0000.00816.94
8.0.90.0070.00016.80
8.0.80.0140.00016.83
8.0.70.0040.00416.78
8.0.60.0000.00816.94
8.0.50.0000.00716.81
8.0.30.0110.00717.01
8.0.20.0150.00617.40
8.0.10.0030.00516.94
8.0.00.0130.00716.88
7.4.330.0050.00016.66
7.4.320.0060.00016.43
7.4.300.0030.00316.54
7.4.290.0030.00316.43
7.4.280.0070.00016.50
7.4.270.0030.00316.50
7.4.260.0030.00616.59
7.4.250.0000.00816.48
7.4.240.0030.00316.45
7.4.230.0000.00716.69
7.4.220.0070.01316.52
7.4.210.0090.00616.64
7.4.200.0030.00616.71
7.4.160.0060.00916.38
7.4.150.0110.00717.40
7.4.140.0090.01017.86
7.4.130.0110.00616.56
7.4.120.0140.00916.58
7.4.110.0100.00716.74
7.4.100.0160.00316.50
7.4.90.0080.01116.63
7.4.80.0130.01019.39
7.4.70.0080.00816.56
7.4.60.0150.00316.48
7.4.50.0070.01016.21
7.4.40.0130.00416.14
7.4.30.0120.00416.24
7.4.20.0120.00615.96
7.4.10.0090.00915.57
7.4.00.0090.00615.45
7.3.330.0050.00013.09
7.3.320.0000.00513.21
7.3.310.0020.00516.10
7.3.300.0040.00416.34
7.3.290.0050.00916.35
7.3.280.0090.00916.38
7.3.270.0080.00817.40
7.3.260.0090.00916.85
7.3.250.0080.01416.45
7.3.240.0120.00716.54
7.3.230.0170.00316.39
7.3.210.0030.01416.26
7.3.200.0060.00919.39
7.3.190.0160.00016.36
7.3.180.0130.00316.29
7.3.170.0040.01216.32
7.3.160.0060.01016.54
7.3.150.0130.00316.15
7.3.140.0130.00316.26
7.3.130.0070.01115.56
7.3.120.0090.00715.63
7.3.110.0100.00715.59
7.3.100.0100.00615.59
7.3.90.0050.01015.56
7.3.80.0070.01115.70
7.3.70.0040.01115.48
7.3.60.0030.01215.59
7.3.50.0080.00715.43
7.3.40.0070.00915.57
7.3.30.0100.00515.54
7.3.20.0080.00816.30
7.3.10.0100.00716.52
7.3.00.0100.00916.31
7.2.330.0120.00616.66
7.2.320.0140.00916.82
7.2.310.0120.00316.41
7.2.300.0040.01216.75
7.2.290.0140.00816.24
7.2.280.0080.00916.59
7.2.270.0070.01016.38
7.2.260.0110.00715.69
7.2.250.0060.00715.58
7.2.240.0030.01315.54
7.2.230.0130.00715.66
7.2.220.0060.01115.72
7.2.210.0060.01315.54
7.2.200.0080.00915.55
7.2.190.0130.00315.69
7.2.180.0030.01315.57
7.2.170.0070.01015.71
7.2.160.0110.00615.77
7.2.150.0070.00916.80
7.2.140.0090.00716.73
7.2.130.0100.00816.51
7.2.120.0060.01116.75
7.2.110.0050.01216.66
7.2.100.0070.00916.83
7.2.90.0230.00616.69
7.2.80.0100.01016.68
7.2.70.0060.00816.72
7.2.60.0080.00816.70
7.2.50.0100.00816.63
7.2.40.0060.00816.76
7.2.30.0050.00816.74
7.2.20.0110.00516.61
7.2.10.0060.01316.69
7.2.00.0110.00716.63
7.1.330.0120.01015.71
7.1.320.0120.01015.65
7.1.310.0120.01015.70
7.1.300.0140.00915.75
7.1.290.0110.01115.54
7.1.280.0150.01115.59
7.1.270.0130.00915.81
7.1.260.0120.00915.56
7.1.250.0130.00615.64
7.1.240.0080.01415.62
7.1.230.0120.00715.66
7.1.220.0120.00715.69
7.1.210.0140.00715.60
7.1.200.0080.00915.69
7.1.190.0110.00815.30
7.1.180.0110.01015.46
7.1.170.0100.01015.71
7.1.160.0210.00815.57
7.1.150.0120.01115.50
7.1.140.0110.00815.68
7.1.130.0120.00715.65
7.1.120.0150.00415.48
7.1.110.0150.00615.68
7.1.100.0110.01015.52
7.1.90.0090.01315.47
7.1.80.0130.00915.71
7.1.70.0110.01016.09
7.1.60.0070.00716.88
7.1.50.0150.00816.14
7.1.40.0140.00415.60
7.1.30.0140.00915.68
7.1.20.0100.00815.64
7.1.10.0120.01015.71
7.1.00.0060.02917.92
7.0.330.0180.00915.10
7.0.320.0100.01015.14
7.0.310.0130.00615.24
7.0.300.0160.00815.32
7.0.290.0110.00915.46
7.0.280.0110.00815.34
7.0.270.0100.01215.32
7.0.260.0130.01115.28
7.0.250.0180.00515.34
7.0.240.0130.00615.31
7.0.230.0110.00715.13
7.0.220.0140.00515.08
7.0.210.0160.00315.19
7.0.200.0140.00315.06
7.0.190.0080.00915.12
7.0.180.0110.00314.96
7.0.170.0110.01015.28
7.0.160.0100.01015.20
7.0.150.0090.00915.27
7.0.140.0030.01215.05
7.0.130.0170.00615.17
7.0.120.0070.01315.32
7.0.110.0070.00815.09
7.0.100.0100.00815.22
7.0.90.0080.00715.23
7.0.80.0070.01314.95
7.0.70.0170.00715.25
7.0.60.0110.02917.16
7.0.50.0080.02416.12
7.0.40.0130.01916.24
7.0.30.0120.02216.39
7.0.20.0130.01916.24
7.0.10.0100.03416.32
7.0.00.0120.01716.35
5.6.400.0140.00915.33
5.6.390.0130.00615.03
5.6.380.0050.01415.16
5.6.370.0090.01114.90
5.6.360.0160.00515.09
5.6.350.0170.00615.16
5.6.340.0110.00815.34
5.6.330.0110.00815.35
5.6.320.0090.01415.25
5.6.310.0120.00815.08
5.6.300.0070.01515.15
5.6.290.0050.01315.11
5.6.280.0110.02717.20
5.6.270.0080.01015.11
5.6.260.0100.01314.85
5.6.250.0090.01315.04
5.6.240.0090.00814.95
5.6.230.0070.01114.91
5.6.220.0150.00315.06
5.6.210.0120.02916.84
5.6.200.0110.02816.16
5.6.190.0100.02016.87
5.6.180.0170.01716.97
5.6.170.0090.02516.91
5.6.160.0170.02916.98
5.6.150.0100.02216.15
5.6.140.0100.03616.05
5.6.130.0110.02916.07
5.6.120.0120.03317.16
5.6.110.0100.02117.03
5.6.100.0130.03117.07
5.6.90.0130.03217.14
5.6.80.0130.01816.88
5.6.70.0140.00815.11
5.6.60.0140.01015.20
5.6.50.0150.00515.14
5.6.40.0160.00714.96
5.6.30.0120.01514.98
5.6.20.0140.00815.02
5.6.10.0100.01015.05
5.6.00.0090.00814.92
5.5.380.0080.01115.04
5.5.370.0080.01015.07
5.5.360.0120.00714.86
5.5.350.1090.02216.92
5.5.340.0120.03316.04
5.5.330.0110.02016.92
5.5.320.0180.01816.70
5.5.310.0190.02916.84
5.5.300.0070.03216.07
5.5.290.0050.04216.18
5.5.280.0110.03517.07
5.5.270.0170.02917.06
5.5.260.0100.01917.04
5.5.250.0130.03316.90
5.5.240.0140.03016.66
5.5.230.0150.00715.07
5.5.220.0110.00814.88
5.5.210.0110.00915.00
5.5.200.0130.01315.03
5.5.190.0160.00615.05
5.5.180.0170.00615.14
5.5.170.0140.00715.21
5.5.160.0100.01214.92
5.5.150.0080.01314.96
5.5.140.0140.01014.87
5.5.130.0130.00915.09
5.5.120.0110.01215.10
5.5.110.0130.00715.02
5.5.100.0130.00814.97
5.5.90.0160.00515.09
5.5.80.0160.00814.77
5.5.70.0190.00515.06
5.5.60.0140.00914.90
5.5.50.0160.00815.03
5.5.40.0160.01015.04
5.5.30.0090.01514.84
5.5.20.0100.01115.13
5.5.10.0130.00814.95
5.5.00.0160.00814.96

preferences:
30.73 ms | 401 KiB | 5 Q