3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rawArray = array("A"=>"['B' => 3, 'C' => 5, 'D' => 9],", "B"=>"['A' => 3, 'C' => 3, 'D' => 4, 'E' => 7],", "C"=>"['A' => 5, 'B' => 3, 'D' => 2, 'E' => 6, 'F' => 3],", "D"=>"['A' => 9, 'B' => 4, 'C' => 2, 'E' => 2, 'F' => 2],", "E"=>"['B' => 7, 'C' => 6, 'D' => 2, 'F' => 5],", "F"=>"['C' => 3, 'D' => 2, 'E' => 5],", ); foreach($rawArray as $k => $v){ preg_match_all("/\'(.)\'/", $v, $key); preg_match_all("/=> (\d)/", $v, $val); $graph[$k] = array_combine($key[1], $val[1]); } print_r($graph);

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.130.0040.00418.35
8.3.120.0110.00020.75
8.3.110.0050.00316.73
8.3.100.0030.00718.71
8.3.90.0060.00916.88
8.3.80.0040.00717.97
8.3.70.0030.01318.56
8.3.60.0070.00718.31
8.3.50.0020.01117.49
8.3.40.0090.00618.84
8.3.30.0070.00718.56
8.3.20.0000.00819.15
8.3.10.0040.00423.61
8.3.00.0030.00523.61
8.2.250.0050.00316.89
8.2.240.0050.00519.21
8.2.230.0060.00320.94
8.2.220.0000.00824.06
8.2.210.0110.00326.77
8.2.200.0120.00017.00
8.2.190.0110.00416.63
8.2.180.0140.00716.88
8.2.170.0110.00422.96
8.2.160.0110.00319.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00819.73
8.2.110.0180.00319.30
8.2.100.0090.00317.97
8.2.90.0000.00818.16
8.2.80.0030.00617.97
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0040.00417.88
8.2.40.0100.00319.45
8.2.30.0000.00819.39
8.2.20.0040.00418.10
8.2.10.0070.00019.33
8.2.00.0000.00719.65
8.1.300.0060.00316.40
8.1.290.0070.00318.88
8.1.280.0160.00625.92
8.1.270.0060.00322.01
8.1.260.0000.00826.35
8.1.250.0040.01128.09
8.1.240.0060.00621.93
8.1.230.0040.00720.81
8.1.220.0080.00017.79
8.1.210.0060.00318.77
8.1.200.0030.00717.38
8.1.190.0060.00317.35
8.1.180.0030.00618.10
8.1.170.0070.00018.73
8.1.160.0000.00818.82
8.1.150.0080.00018.89
8.1.140.0080.00019.51
8.1.130.0000.00719.09
8.1.120.0060.00517.60
8.1.110.0000.00717.48
8.1.100.0000.00817.50
8.1.90.0070.00317.59
8.1.80.0030.00517.63
8.1.70.0040.00417.63
8.1.60.0030.00517.71
8.1.50.0000.00817.56
8.1.40.0040.00417.51
8.1.30.0040.00417.77
8.1.20.0040.00417.71
8.1.10.0040.00417.77
8.1.00.0030.00517.64
8.0.300.0030.00619.98
8.0.290.0050.00516.88
8.0.280.0070.00018.39
8.0.270.0000.00717.16
8.0.260.0030.00317.29
8.0.250.0030.00317.05
8.0.240.0000.00917.13
8.0.230.0000.00717.00
8.0.220.0040.00417.05
8.0.210.0050.00316.97
8.0.200.0070.00017.06
8.0.190.0040.00416.99
8.0.180.0040.00417.02
8.0.170.0080.00016.93
8.0.160.0030.00617.00
8.0.150.0050.00516.96
8.0.140.0030.00517.02
8.0.130.0030.00313.50
8.0.120.0050.00217.05
8.0.110.0000.00917.02
8.0.100.0050.00316.98
8.0.90.0040.00417.04
8.0.80.0050.01116.97
8.0.70.0000.00816.86
8.0.60.0050.00317.06
8.0.50.0040.00416.88
8.0.30.0110.00917.21
8.0.20.0090.01117.40
8.0.10.0090.00017.13
8.0.00.0060.01216.80
7.4.330.0000.00415.55
7.4.320.0000.00616.67
7.4.300.0060.00016.78
7.4.290.0080.00016.83
7.4.280.0040.00416.79
7.4.270.0040.00416.70
7.4.260.0030.00316.69
7.4.250.0000.00816.65
7.4.240.0000.00716.86
7.4.230.0030.00516.82
7.4.220.0080.00016.55
7.4.210.0090.01216.87
7.4.200.0070.00016.55
7.4.160.0070.01416.59
7.4.140.0140.00417.86
7.4.130.0140.00416.70
7.4.120.0100.00916.77
7.4.110.0110.00616.79
7.4.100.0150.00016.59
7.4.90.0130.01016.67
7.4.80.0140.00319.39
7.4.70.0060.01216.85
7.4.60.0100.00716.40
7.4.50.0030.01416.69
7.4.40.0090.00916.83
7.4.00.0130.00315.13
7.3.330.0050.00013.23
7.3.320.0030.00313.30
7.3.310.0080.00016.50
7.3.300.0000.00716.49
7.3.290.0000.00716.59
7.3.280.0080.01316.54
7.3.260.0110.01016.58
7.3.240.0110.00816.54
7.3.230.0100.00716.71
7.3.210.0120.00616.38
7.3.200.0090.00716.55
7.3.190.0060.01016.61
7.3.180.0070.01016.55
7.3.170.0070.01016.77
7.3.160.0070.01016.60
7.3.120.0040.01215.27
7.3.110.0030.01214.93
7.3.100.0060.01014.98
7.3.90.0060.00614.66
7.3.80.0100.00714.93
7.3.70.0000.01514.95
7.3.60.0070.00315.23
7.3.50.0000.01214.82
7.3.40.0040.00815.04
7.3.30.0060.00614.88
7.3.20.0030.00917.03
7.3.10.0030.00616.54
7.3.00.0030.00716.80
7.2.330.0140.00516.80
7.2.320.0090.01616.79
7.2.310.0070.01016.89
7.2.300.0140.00316.81
7.2.290.0100.01016.81
7.2.240.0030.01315.36
7.2.230.0090.00615.17
7.2.220.0090.00615.35
7.2.210.0090.00315.08
7.2.200.0060.00614.91
7.2.190.0070.00715.22
7.2.180.0030.01215.32
7.2.170.0070.00715.27
7.2.160.0060.00915.33
7.2.150.0030.01217.13
7.2.140.0070.01017.38
7.2.130.0030.01416.84
7.2.120.0000.01517.14
7.2.110.0040.00717.24
7.2.100.0070.01017.15
7.2.90.0080.00316.95
7.2.80.0070.00717.17
7.2.70.0100.01016.06
7.2.60.0140.00316.24
7.2.50.0100.01016.00
7.2.40.0130.00616.21
7.2.30.0100.00816.36
7.2.20.0120.00416.09
7.2.10.0120.00516.24
7.2.00.0130.00516.20
7.1.330.0030.00615.92
7.1.320.0040.00815.99
7.1.310.0000.01416.09
7.1.300.0030.01316.07
7.1.290.0090.00615.95
7.1.280.0000.01715.97
7.1.270.0030.00615.59
7.1.260.0090.00616.13
7.1.250.0100.00315.93
7.1.200.0000.01016.05
7.1.170.0120.00914.30
7.1.160.0160.00414.03
7.1.150.0120.00914.16
7.1.140.0140.00614.01
7.1.130.1040.00713.84
7.1.120.0130.00613.94
7.1.110.0120.00814.32
7.1.100.0120.00814.20
7.1.90.0150.00714.19
7.1.80.0270.00313.95
7.1.70.0100.01013.91
7.1.60.0470.00832.14
7.1.50.0490.00732.13
7.1.40.0350.01932.10
7.1.30.0450.01032.12
7.1.20.0340.01232.09
7.1.10.0150.00614.01
7.1.00.0070.01413.79

preferences:
69.15 ms | 403 KiB | 5 Q