3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target_dir = "in/"; $target_filename = 'asurite_hw1.m'; // Splits the input file name and its extension. $base_name = pathinfo($target_filename, PATHINFO_FILENAME); $extension = pathinfo($target_filename, PATHINFO_EXTENSION); echo 'base_name: ' . $base_name . "\n"; echo 'extension: ' . $extension . "\n"; $previous_files = glob($target_dir . $base_name . '*'); $previous_files = array('asurite_hw1_1.m'); $id = 1; foreach ($previous_files as $f) { $r = preg_match('/.+_(\d+)\.m/', $f, $matches); if (count($matches) > 1 && $id <= $matches[1]) { $id = $id + 1; } } print_r($id); // $pattern = '/^asurite ?>

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.0110.00416.50
8.3.50.0110.00922.12
8.3.40.0120.00619.14
8.3.30.0040.01119.09
8.3.20.0070.00020.46
8.3.10.0060.00323.65
8.3.00.0080.00023.66
8.2.180.0180.00316.75
8.2.170.0090.00622.96
8.2.160.0070.01122.43
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.13
8.2.110.0070.00319.33
8.2.100.0080.00418.05
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0000.00818.05
8.2.50.0030.00618.09
8.2.40.0040.00422.42
8.2.30.0070.00019.72
8.2.20.0030.00717.96
8.2.10.0040.00418.16
8.2.00.0000.00718.21
8.1.280.0090.00925.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0100.00022.31
8.1.230.0060.00618.02
8.1.220.0050.00317.91
8.1.210.0060.00318.77
8.1.200.0040.00717.47
8.1.190.0040.00417.48
8.1.180.0030.00618.10
8.1.170.0050.00318.71
8.1.160.0030.00320.84
8.1.150.0040.00418.96
8.1.140.0030.00519.64
8.1.130.0070.00017.73
8.1.120.0070.00017.64
8.1.110.0000.00817.68
8.1.100.0050.00217.71
8.1.90.0030.00617.65
8.1.80.0040.00417.73
8.1.70.0030.00317.62
8.1.60.0050.00217.82
8.1.50.0000.00917.83
8.1.40.0080.00417.68
8.1.30.0030.00617.91
8.1.20.0000.00717.86
8.1.10.0050.00317.79
8.1.00.0040.00417.72
8.0.300.0040.00418.90
8.0.290.0040.00417.00
8.0.280.0040.00418.62
8.0.270.0050.00317.40
8.0.260.0050.00217.32
8.0.250.0070.00017.17
8.0.240.0000.00717.14
8.0.230.0000.00817.16
8.0.220.0060.00317.00
8.0.210.0040.00417.12
8.0.200.0030.00317.08
8.0.190.0040.00417.27
8.0.180.0080.00017.06
8.0.170.0070.00017.05
8.0.160.0030.00317.07
8.0.150.0000.00717.04
8.0.140.0000.00716.92
8.0.130.0000.00613.50
8.0.120.0080.00215.24
8.0.110.0050.00515.21
8.0.100.0050.00515.18
8.0.90.0050.00415.22
8.0.80.0050.01015.29
8.0.70.0050.00515.24
8.0.60.0080.00215.21
8.0.50.0070.00315.27
8.0.30.0090.00716.02
8.0.20.0110.00816.46
8.0.10.0060.00415.33
8.0.00.0100.00616.14
7.4.330.0050.00016.95
7.4.320.0040.00416.90
7.4.300.0000.00616.87
7.4.290.0040.00416.88
7.4.280.0030.00616.85
7.4.270.0030.00316.88
7.4.260.0090.00016.89
7.4.250.0050.00215.16
7.4.240.0060.00415.12
7.4.230.0110.00015.20
7.4.220.0100.00615.18
7.4.210.0090.00415.18
7.4.200.0050.00515.19
7.4.190.0090.00313.60
7.4.180.0080.00413.64
7.4.160.0110.00515.14
7.4.150.0060.00815.44
7.4.140.0110.00716.39
7.4.130.0100.00715.75
7.4.120.0090.00615.72
7.4.110.0080.00615.09
7.4.100.0120.00715.09
7.4.90.0100.00615.11
7.4.80.0050.01016.47
7.4.70.0060.00815.18
7.4.60.0070.00815.27
7.4.50.0090.00315.06
7.4.40.0080.00715.11
7.4.30.0130.00215.16
7.4.20.0000.01113.35
7.4.10.0090.00313.38
7.4.00.0110.00414.23
7.3.330.0070.00013.46
7.3.320.0000.00613.46
7.3.310.0100.00014.91
7.3.300.0050.00514.90
7.3.290.0080.00715.70
7.3.280.0090.00615.71
7.3.270.0080.00915.38
7.3.260.0100.00815.06
7.3.250.0080.00815.72
7.3.240.0100.00715.45
7.3.230.0130.00314.91
7.3.220.0120.00013.19
7.3.210.0130.00215.09
7.3.200.0100.00616.35
7.3.190.0100.00714.90
7.3.180.0110.00315.04
7.3.170.0050.01114.93
7.3.160.0090.00614.85
7.3.150.0130.00013.30
7.3.140.0100.00213.30
7.3.130.0120.00013.16
7.3.120.0100.00414.24
7.3.110.0080.00614.03
7.3.100.0030.00914.12
7.3.90.0110.00314.36
7.3.80.0050.00914.20
7.3.70.0080.00514.06
7.3.60.0090.00614.28
7.3.50.0100.00314.32
7.3.40.0050.00714.31
7.3.30.0090.00614.17
7.3.20.0090.00315.99
7.3.10.0090.00415.88
7.3.00.0060.00515.97
7.2.340.0090.00313.61
7.2.330.0100.00915.21
7.2.320.0060.00915.18
7.2.310.0120.00315.22
7.2.300.0040.01115.18
7.2.290.0090.00615.18
7.2.280.0040.00813.48
7.2.270.0000.01213.52
7.2.260.0090.00413.56
7.2.250.0060.00613.48
7.2.240.0100.00514.39
7.2.230.0120.00414.45
7.2.220.0080.00614.19
7.2.210.0100.00514.36
7.2.200.0070.00614.24
7.2.190.0060.00714.43
7.2.180.0080.00614.40
7.2.170.0100.00514.51
7.2.160.0100.00214.51
7.2.150.0060.00716.23
7.2.140.0040.00816.15
7.2.130.0100.00516.46
7.2.120.0100.00416.13
7.2.110.0090.00516.17
7.2.100.0110.00516.30
7.2.90.0070.00716.32
7.2.80.0090.00416.11
7.2.70.0080.00716.36
7.2.60.0100.00516.42
7.2.50.0070.00816.23
7.2.40.0090.00416.15
7.2.30.0080.00716.37
7.2.20.0070.01016.33
7.2.10.0040.01216.27
7.2.00.0070.00617.43
7.1.330.0050.00915.10
7.1.320.0100.00515.02
7.1.310.0100.00315.10
7.1.300.0070.00715.11
7.1.290.0100.00415.16
7.1.280.0090.00415.11
7.1.270.0040.01015.12
7.1.260.0060.00815.15
7.1.250.0080.00415.11
7.1.240.0080.00414.32
7.1.230.0120.00014.34
7.1.220.0120.00014.34
7.1.210.0120.00014.20
7.1.200.0090.00715.15
7.1.190.0080.00414.39
7.1.180.0130.00014.31
7.1.170.0070.00514.27
7.1.160.0040.00814.30
7.1.150.0080.00414.26
7.1.140.0090.00414.26
7.1.130.0130.00014.27
7.1.120.0120.00014.24
7.1.110.0100.00214.40
7.1.100.0030.00716.47
7.1.90.0000.01214.39
7.1.80.0060.00614.39
7.1.70.0040.00515.64
7.1.60.0090.00816.99
7.1.50.0080.00824.68
7.1.40.0130.00014.46
7.1.30.0110.00314.50
7.1.20.0090.00414.49
7.1.10.0070.00714.30
7.1.00.0060.04118.37
7.0.330.0100.00314.23
7.0.320.0120.00214.36
7.0.310.0080.00514.36
7.0.300.0130.00014.36
7.0.290.0090.00514.14
7.0.280.0150.00014.31
7.0.270.0090.00414.30
7.0.260.0080.00514.16
7.0.250.0090.00414.44
7.0.240.0100.00414.41
7.0.230.0140.00014.30
7.0.220.0140.00014.26
7.0.210.0040.00814.22
7.0.200.0090.00215.57
7.0.190.0060.00614.23
7.0.180.0100.00314.17
7.0.170.0080.00514.39
7.0.160.0150.00014.26
7.0.150.0100.00314.24
7.0.140.0100.00414.18
7.0.130.0080.00414.36
7.0.120.0130.00014.19
7.0.110.0100.00314.31
7.0.100.0120.00214.25
7.0.90.0110.00414.25
7.0.80.0120.00014.05
7.0.70.0140.00014.19
7.0.60.0180.03817.97
7.0.50.0060.04515.99
7.0.40.0070.02817.08
7.0.30.0160.03017.16
7.0.20.0240.03317.15
7.0.10.0110.02617.05
7.0.00.0050.03717.06
5.6.400.0090.00312.85
5.6.390.0100.00212.59
5.6.380.0040.00812.59
5.6.370.0130.00012.66
5.6.360.0090.00412.70
5.6.350.0100.00312.69
5.6.340.0070.00712.67
5.6.330.0130.00012.84
5.6.320.0040.00812.75
5.6.310.0110.00412.70
5.6.300.0110.00312.62
5.6.290.0090.00412.83
5.6.280.0050.02516.90
5.6.270.0080.00612.82
5.6.260.0130.00012.68
5.6.250.0140.00012.73
5.6.240.0090.00312.79
5.6.230.0140.00012.86
5.6.220.0120.00212.76
5.6.210.0110.02016.84
5.6.200.0150.03715.59
5.6.190.0090.02316.74
5.6.180.0230.03816.59
5.6.170.0080.02816.76
5.6.160.0100.04116.74
5.6.150.0070.02815.49
5.6.140.0060.04315.60
5.6.130.0080.02515.56
5.6.120.0130.03816.93
5.6.110.0090.04116.87
5.6.100.0050.04816.93
5.6.90.0130.03916.86
5.6.80.0080.03616.62
5.6.70.0080.00513.01
5.6.60.0040.00812.79
5.6.50.0120.00012.79
5.6.40.0080.00412.84
5.6.30.0080.00412.89
5.6.20.0060.00612.60
5.6.10.0110.00012.71
5.6.00.0070.00412.82
5.5.380.0110.00013.08
5.5.370.0090.00312.93
5.5.360.0080.00312.71
5.5.350.0140.03816.55
5.5.340.0120.04015.37
5.5.330.0080.04216.58
5.5.320.0340.03516.44
5.5.310.0150.04416.52
5.5.300.0030.04715.38
5.5.290.0060.02315.30
5.5.280.0060.02416.78
5.5.270.0110.04216.79
5.5.260.0090.04316.88
5.5.250.0090.04216.61
5.5.240.0180.04416.54
5.5.230.0060.00612.89
5.5.220.0110.00012.86
5.5.210.0080.00212.86
5.5.200.0120.00012.73
5.5.190.0080.00312.57
5.5.180.0110.00012.57
5.5.170.0070.00412.57
5.5.160.0110.00012.71
5.5.150.0070.00412.61
5.5.140.0110.00012.66
5.5.130.0050.00512.44
5.5.120.0130.00012.61
5.5.110.0110.00012.54
5.5.100.0110.00012.89
5.5.90.0110.00012.63
5.5.80.0000.01112.79
5.5.70.0060.00512.67
5.5.60.0110.00012.82
5.5.50.0040.00712.57
5.5.40.0120.00012.79
5.5.30.0070.00412.86
5.5.20.0070.00412.72
5.5.10.0070.00412.63
5.5.00.0080.00312.73

preferences:
54.19 ms | 401 KiB | 5 Q