3v4l.org

run code in 300+ PHP versions simultaneously
<?php $type = 'c'; $imagesDir = array('a' => 'a', 'b' => 'b'); $images = glob($imagesDir . $type . '*[TYPE].{jpg,jpeg,png,gif}', GLOB_BRACE); foreach($images as $image): ?> <li><a href="<?php echo str_replace('[TYPE]', 'F', $image); ?>"><img src="<?php echo str_replace('[TYPE]', 'T', $image); ?></a>" alt="" /></li> <?php endforeach; ?>

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.40.0180.00018.97
8.3.30.0040.01219.00
8.3.20.0000.00720.29
8.3.10.0070.00022.09
8.3.00.0000.00722.55
8.2.170.0070.01022.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00926.16
8.2.120.0050.00319.90
8.2.110.0060.00322.25
8.2.100.0090.00318.03
8.2.90.0000.00819.34
8.2.80.0030.00517.97
8.2.70.0030.00617.75
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0070.00018.09
8.2.20.0080.00017.78
8.2.10.0080.00017.73
8.2.00.0050.00317.93
8.1.270.0060.00320.27
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00723.79
8.1.230.0060.00620.99
8.1.220.0000.00817.77
8.1.210.0050.00318.77
8.1.200.0040.00417.24
8.1.190.0040.00417.53
8.1.180.0040.00418.73
8.1.170.0000.00818.71
8.1.160.0040.00422.28
8.1.150.0040.00418.63
8.1.140.0000.00817.48
8.1.130.0030.00317.88
8.1.120.0040.00417.51
8.1.110.0000.00817.51
8.1.100.0000.01017.49
8.1.90.0050.00217.50
8.1.80.0040.00417.43
8.1.70.0070.00017.52
8.1.60.0000.01017.61
8.1.50.0020.00517.54
8.1.40.0050.00317.50
8.1.30.0050.00317.67
8.1.20.0030.00617.78
8.1.10.0000.00917.64
8.1.00.0000.00917.57
8.0.300.0000.00718.77
8.0.290.0070.00017.30
8.0.280.0030.00318.51
8.0.270.0050.00217.38
8.0.260.0000.00717.01
8.0.250.0000.00717.06
8.0.240.0000.00817.00
8.0.230.0000.00817.03
8.0.220.0030.00316.89
8.0.210.0000.00717.09
8.0.200.0000.00716.98
8.0.190.0080.00017.09
8.0.180.0000.00816.95
8.0.170.0070.00017.10
8.0.160.0040.00417.13
8.0.150.0000.00716.98
8.0.140.0040.00416.89
8.0.130.0000.00513.48
8.0.120.0050.00515.12
8.0.110.0070.00415.18
8.0.100.0050.00615.15
8.0.90.0080.00215.23
8.0.80.0090.00715.24
8.0.70.0050.00615.28
8.0.60.0060.00415.19
8.0.50.0060.00415.21
8.0.30.0080.01315.90
8.0.20.0090.00816.08
8.0.10.0040.00715.37
8.0.00.0090.00715.72
7.4.330.0020.00215.00
7.4.320.0040.00416.67
7.4.300.0060.00016.67
7.4.290.0040.00416.56
7.4.280.0030.00316.66
7.4.270.0030.00316.71
7.4.260.0000.00716.56
7.4.250.0070.00414.90
7.4.240.0050.00415.51
7.4.230.0070.00515.05
7.4.220.0080.00814.92
7.4.210.0060.00915.76
7.4.200.0070.00415.07
7.4.190.0090.00415.00
7.4.180.0090.00513.37
7.4.160.0120.00314.91
7.4.150.0100.00915.36
7.4.140.0110.00716.32
7.4.130.0100.00815.48
7.4.120.0080.00815.50
7.4.110.0090.00914.88
7.4.100.0080.00715.12
7.4.90.0120.00414.88
7.4.80.0150.00516.31
7.4.70.0060.00914.87
7.4.60.0110.00514.92
7.4.50.0040.00714.79
7.4.40.0060.00917.95
7.4.30.0100.00614.95
7.4.20.0090.00413.15
7.4.10.0090.00413.13
7.4.00.0080.00513.94
7.3.330.0030.00313.33
7.3.320.0050.00013.21
7.3.310.0050.00614.76
7.3.300.0110.00114.79
7.3.290.0100.00414.83
7.3.280.0080.00915.60
7.3.270.0060.01115.29
7.3.260.0120.00414.85
7.3.250.0120.00515.50
7.3.240.0100.00714.96
7.3.230.0100.00614.87
7.3.220.0120.00313.27
7.3.210.0130.00514.77
7.3.200.0120.00416.23
7.3.190.0080.01014.73
7.3.180.0090.00614.73
7.3.170.0090.00614.87
7.3.160.0140.00214.90
7.3.150.0090.00513.09
7.3.140.0100.00513.18
7.3.130.0150.00013.08
7.3.120.0090.00713.86
7.3.110.0090.00613.02
7.3.100.0130.00313.08
7.3.90.0120.00413.27
7.3.80.0110.00413.23
7.3.70.0150.00013.15
7.3.60.0130.00313.27
7.3.50.0090.00613.36
7.3.40.0000.01413.27
7.3.30.0130.00313.21
7.3.20.0050.01015.17
7.3.10.0120.00415.00
7.3.00.0160.00315.10
7.2.340.0100.00313.07
7.2.330.0110.00514.96
7.2.320.0130.00515.00
7.2.310.0100.00614.78
7.2.300.0070.00914.98
7.2.290.0130.00315.08
7.2.280.0110.00313.14
7.2.270.0080.00813.38
7.2.260.0100.00513.33
7.2.250.0150.00013.22
7.2.240.0100.00513.20
7.2.230.0150.00013.20
7.2.220.0100.00413.30
7.2.210.0110.00313.32
7.2.200.0090.00613.28
7.2.190.0160.00013.43
7.2.180.0140.00013.36
7.2.170.0120.00413.38
7.2.160.0130.00013.30
7.2.150.0090.00615.14
7.2.140.0100.00315.14
7.2.130.0110.00415.40
7.2.120.0090.00515.16
7.2.110.0150.00015.46
7.2.100.0100.00315.39
7.2.90.0120.00215.28
7.2.80.0080.00515.14
7.2.70.0080.00415.26
7.2.60.0110.00315.25
7.2.50.0090.00415.15
7.2.40.0140.00015.26
7.2.30.0140.00015.29
7.2.20.0080.00615.40
7.2.10.0070.00715.32
7.2.00.0110.00315.30
7.1.330.0090.00514.21
7.1.320.0090.00314.20
7.1.310.0110.00314.13
7.1.300.0080.00514.18
7.1.290.0040.00814.09
7.1.280.0060.00614.13
7.1.270.0000.01214.14
7.1.260.0120.00014.00
7.1.250.0090.00514.12
7.1.240.0120.00014.11
7.1.230.0130.00014.04
7.1.220.0120.00014.20
7.1.210.0140.00014.23
7.1.200.0090.00314.13
7.1.190.0100.00214.25
7.1.180.0110.00014.18
7.1.170.0110.00214.07
7.1.160.0040.00914.19
7.1.150.0060.00614.22
7.1.140.0090.00414.08
7.1.130.0090.00314.01
7.1.120.0110.00414.01
7.1.110.0090.00414.15
7.1.100.0100.00314.15
7.1.90.0120.00014.15
7.1.80.0060.00614.25
7.1.70.0080.00315.60
7.1.60.0130.00616.96
7.1.50.0120.00415.59
7.1.40.0050.00914.30
7.1.30.0130.00014.23
7.1.20.0130.00014.10
7.1.10.0090.00314.03
7.1.00.0070.02518.20
7.0.330.0040.00914.05
7.0.320.0000.01213.97
7.0.310.0130.00014.14
7.0.300.0120.00014.24
7.0.290.0130.00014.11
7.0.280.0000.01214.15
7.0.270.0080.00414.20
7.0.260.0080.00414.24
7.0.250.0070.00714.19
7.0.240.0100.00214.22
7.0.230.0090.00314.18
7.0.220.0130.00014.13
7.0.210.0100.00213.95
7.0.200.0080.00215.48
7.0.190.0090.00314.19
7.0.180.0120.00014.17
7.0.170.0130.00014.19
7.0.160.0100.00214.01
7.0.150.0100.00314.05
7.0.140.0060.03818.07
7.0.130.0090.00414.21
7.0.120.0090.00214.24
7.0.110.0090.00314.07
7.0.100.0100.00314.15
7.0.90.0060.00613.89
7.0.80.0120.00013.95
7.0.70.0120.00014.00
7.0.60.0150.04017.92
7.0.50.0080.04215.98
7.0.40.0050.03217.15
7.0.30.0190.02717.13
7.0.20.0220.03617.13
7.0.10.0120.02717.19
7.0.00.0070.02317.07
5.6.400.0040.00812.65
5.6.390.0030.00912.63
5.6.380.0000.01212.59
5.6.370.0080.00412.68
5.6.360.0130.00012.52
5.6.350.0040.00812.66
5.6.340.0090.00312.55
5.6.330.0120.00012.48
5.6.320.0090.00412.57
5.6.310.0030.00912.61
5.6.300.0100.00312.60
5.6.290.0120.00012.65
5.6.280.0060.03816.84
5.6.270.0110.00012.65
5.6.260.0060.00612.48
5.6.250.0100.00312.61
5.6.240.0030.00912.59
5.6.230.0000.01212.93
5.6.220.0090.00412.86
5.6.210.0050.04516.64
5.6.200.0060.03915.54
5.6.190.0080.03016.67
5.6.180.0360.02816.42
5.6.170.0180.04316.70
5.6.160.0090.02716.79
5.6.150.0100.04015.58
5.6.140.0110.02815.46
5.6.130.0120.02515.43
5.6.120.0090.04016.91
5.6.110.0110.04016.86
5.6.100.0110.04216.83
5.6.90.0070.02216.95
5.6.80.0090.02216.59
5.6.70.0120.00012.61
5.6.60.0060.00612.70
5.6.50.0080.00412.58
5.6.40.0060.00612.63
5.6.30.0090.00312.85
5.6.20.0040.00712.58
5.6.10.0060.00612.50
5.6.00.0080.00312.65
5.5.380.0060.00512.83
5.5.370.0080.00312.66
5.5.360.0080.00412.52
5.5.350.0170.03716.55
5.5.340.0120.03815.22
5.5.330.0100.04016.52
5.5.320.0220.03616.46
5.5.310.0190.03016.40
5.5.300.0100.01815.20
5.5.290.0100.04315.29
5.5.280.0100.03816.80
5.5.270.0100.04016.74
5.5.260.0110.03316.62
5.5.250.0120.03716.58
5.5.240.0060.02316.51
5.5.230.0090.00312.63
5.5.220.0140.00012.82
5.5.210.0070.00712.71
5.5.200.0110.00212.64
5.5.190.0130.00012.51
5.5.180.0120.00012.55
5.5.170.0130.00012.64
5.5.160.0080.00512.64
5.5.150.0130.00012.48
5.5.140.0090.00412.45
5.5.130.0080.00512.45
5.5.120.0100.00412.28
5.5.110.0060.00612.59
5.5.100.0140.00012.61
5.5.90.0090.00412.63
5.5.80.0060.00712.57
5.5.70.0080.00412.73
5.5.60.0120.00012.77
5.5.50.0130.00012.57
5.5.40.0100.00312.57
5.5.30.0130.00012.64
5.5.20.0090.00412.83
5.5.10.0120.00012.47
5.5.00.0100.00312.46
5.4.450.0370.03216.03
5.4.440.0300.03616.12
5.4.430.0380.02516.01
5.4.420.0270.03416.01
5.4.410.0320.03015.91
5.4.400.0330.02315.77
5.4.390.0300.02315.97
5.4.380.0270.02015.66
5.4.370.0240.02115.66
5.4.360.0350.02015.86
5.4.350.0400.01915.81
5.4.340.0280.02015.71
5.4.330.0070.00612.47
5.4.320.0300.01815.80
5.4.310.0280.02215.95
5.4.300.0290.02215.88
5.4.290.0380.02915.74
5.4.280.0300.02515.90
5.4.270.0320.02515.79
5.4.260.0410.02715.89
5.4.250.0330.02815.64
5.4.240.0360.02815.81
5.4.230.0320.03615.72
5.4.220.0400.02315.70
5.4.210.0330.03015.76
5.4.200.0300.01815.80
5.4.190.0300.03215.58
5.4.180.0320.03315.69
5.4.170.0310.01715.70
5.4.160.0320.03315.61
5.4.150.0320.02015.82
5.4.140.0280.02014.32
5.4.130.0390.02514.24
5.4.120.0410.02714.42
5.4.110.0320.03614.53
5.4.100.0330.02314.49
5.4.90.0390.03114.54
5.4.80.0350.03014.45
5.4.70.0240.02014.40
5.4.60.0290.03314.51
5.4.50.0360.03114.43
5.4.40.0240.03714.31
5.4.30.0350.02414.30
5.4.20.0240.02014.52
5.4.10.0260.02214.57
5.4.00.0330.01714.05
5.3.290.0280.02513.79
5.3.280.0340.03713.67
5.3.270.0330.02113.90
5.3.260.0330.03513.86
5.3.250.0240.02013.89
5.3.240.0370.03113.63
5.3.230.0320.03413.86
5.3.220.0330.03613.77
5.3.210.0330.03313.58
5.3.200.0360.03313.73
5.3.190.0320.02913.72
5.3.180.0330.02113.88
5.3.170.0340.02313.66
5.3.160.0330.03813.87
5.3.150.0340.03113.79
5.3.140.0230.02813.69
5.3.130.0330.03413.62
5.3.120.0150.02713.60
5.3.110.0290.02013.57
5.3.100.0290.03013.41
5.3.90.0250.02513.54
5.3.80.0290.02513.36
5.3.70.0390.02813.52
5.3.60.0380.02813.38
5.3.50.0330.03213.44
5.3.40.0310.03313.34
5.3.30.0320.03013.47
5.3.20.0260.02113.34
5.3.10.0340.01813.32
5.3.00.0360.03013.10
5.2.170.0260.01811.54
5.2.160.0220.02711.46
5.2.150.0200.01811.49
5.2.140.0270.03011.48
5.2.130.0330.02211.52
5.2.120.0250.01511.45
5.2.110.0300.01511.54
5.2.100.0230.01611.41
5.2.90.0270.01911.52
5.2.80.0320.02811.38
5.2.70.0310.02111.34
5.2.60.0330.02211.32
5.2.50.0310.02011.35
5.2.40.0230.02811.36
5.2.30.0250.02211.46
5.2.20.0180.02011.34
5.2.10.0270.02811.18
5.2.00.0270.02711.14
5.1.60.0250.02310.42
5.1.50.0210.01510.51
5.1.40.0160.02110.58
5.1.30.0260.01310.69
5.1.20.0190.01910.64
5.1.10.0200.01410.49
5.1.00.0190.01410.52
5.0.50.0070.0129.62
5.0.40.0050.0179.62
5.0.30.0110.0169.62
5.0.20.0120.0129.62
5.0.10.0120.0239.62
5.0.00.0130.0179.62
4.4.90.0090.0119.62
4.4.80.0120.0189.62
4.4.70.0090.0099.62
4.4.60.0100.0089.62
4.4.50.0150.0159.62
4.4.40.0090.0159.62
4.4.30.0170.0109.62
4.4.20.0090.0099.62
4.4.10.0080.0109.62
4.4.00.0080.0189.62
4.3.110.0120.0089.62
4.3.100.0080.0109.62
4.3.90.0100.0089.62
4.3.80.0120.0139.62
4.3.70.0130.0159.62
4.3.60.0100.0179.62
4.3.50.0110.0089.62
4.3.40.0030.0179.62
4.3.30.0030.0109.62
4.3.20.0020.0129.62
4.3.10.0020.0089.62
4.3.00.0020.0109.62

preferences:
40.46 ms | 400 KiB | 5 Q