3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = ' Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s. [include=contact_form] // here should be contact_form.php included Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s [include=cat] // here should be cat.php included '; // match if (preg_match_all('#\[include=(?P<name>.*?)\]#', $content, $includes)) { // loop foreach($includes['name'] as $include) { // buffer ob_start(); //include($include.'.php'); // 😲 echo 'I was from '.$include.'.php'; $buffer = ob_get_clean(); // replace $content = str_replace('[include='.$include.']', $buffer, $content); } } echo $content;

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.0150.00318.54
8.3.50.0110.00318.57
8.3.40.0150.00618.96
8.3.30.0090.00618.77
8.3.20.0040.00421.69
8.3.10.0040.00421.97
8.3.00.0080.00023.48
8.2.180.0090.00618.72
8.2.170.0210.00019.08
8.2.160.0070.00722.96
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00421.06
8.2.110.0060.00320.98
8.2.100.0040.00818.05
8.2.90.0050.00319.25
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0040.00418.04
8.2.30.0070.00018.03
8.2.20.0060.00318.07
8.2.10.0020.00519.27
8.2.00.0070.00019.29
8.1.280.0110.00425.92
8.1.270.0090.00022.12
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00619.57
8.1.230.0070.00417.95
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.01017.48
8.1.190.0000.00817.36
8.1.180.0060.00318.10
8.1.170.0000.00818.83
8.1.160.0040.00418.97
8.1.150.0000.00718.84
8.1.140.0000.00718.80
8.1.130.0070.00020.09
8.1.120.0000.00717.60
8.1.110.0040.00417.62
8.1.100.0040.00417.63
8.1.90.0000.00817.54
8.1.80.0000.00817.54
8.1.70.0000.00717.63
8.1.60.0000.00817.75
8.1.50.0080.00017.68
8.1.40.0040.00417.70
8.1.30.0040.00417.80
8.1.20.0030.00517.83
8.1.10.0030.00617.78
8.1.00.0060.00317.66
8.0.300.0000.00718.77
8.0.290.0050.00216.88
8.0.280.0030.00318.36
8.0.270.0000.00718.25
8.0.260.0060.00018.38
8.0.250.0070.00017.05
8.0.240.0030.00317.11
8.0.230.0030.00516.97
8.0.220.0060.00316.98
8.0.210.0030.00316.96
8.0.200.0000.00817.03
8.0.190.0050.00217.16
8.0.180.0050.00216.99
8.0.170.0040.00416.95
8.0.160.0020.00517.01
8.0.150.0000.00817.00
8.0.140.0030.00517.04
8.0.130.0030.00313.48
8.0.120.0000.00717.02
8.0.110.0040.00416.99
8.0.100.0040.00416.94
8.0.90.0000.00916.99
8.0.80.0040.01016.99
8.0.70.0070.00016.98
8.0.60.0000.00717.11
8.0.50.0080.00017.10
8.0.30.0030.01716.93
8.0.20.0140.00817.35
8.0.10.0040.00417.19
8.0.00.0090.00916.99
7.4.330.0000.00515.55
7.4.320.0060.00016.71
7.4.300.0000.00716.78
7.4.290.0050.00516.70
7.4.280.0040.00416.74
7.4.270.0000.01016.75
7.4.260.0050.00013.52
7.4.250.0030.00316.70
7.4.240.0030.00516.80
7.4.230.0000.00816.90
7.4.220.0000.00716.80
7.4.210.0080.00916.77
7.4.200.0000.00716.58
7.4.130.0060.01216.78
7.4.120.0030.01316.59
7.4.110.0090.00916.86
7.4.100.0060.01016.93
7.4.90.0130.01016.85
7.4.80.0140.01019.39
7.4.70.0100.01016.77
7.4.60.0140.00616.64
7.4.50.0060.01016.54
7.4.40.0080.01416.55
7.4.30.0040.01216.41
7.4.20.0120.00316.57
7.4.10.0060.00916.60
7.4.00.0060.01216.77
7.3.330.0000.00716.40
7.3.320.0030.00313.20
7.3.310.0000.00716.55
7.3.300.0070.00016.38
7.3.290.0070.00916.42
7.3.280.0040.01116.43
7.3.260.0130.00516.52
7.3.240.0100.00716.67
7.3.230.0060.01216.84
7.3.210.0140.00316.73
7.3.200.0100.00716.85
7.3.190.0070.01016.77
7.3.180.0090.00916.71
7.3.170.0080.00716.82
7.3.160.0090.00916.66
7.3.150.0050.01316.47
7.3.140.0140.00416.54
7.3.130.0120.00316.62
7.3.120.0090.00616.47
7.3.110.0090.00916.59
7.3.100.0120.00616.33
7.3.90.0110.00816.71
7.3.80.0130.00616.58
7.3.70.0050.01116.57
7.3.60.0080.00916.59
7.3.50.0120.01016.38
7.3.40.0090.01316.59
7.3.30.0060.01516.57
7.3.20.0070.01016.54
7.3.10.0070.01516.59
7.3.00.0140.01016.42
7.2.330.0090.00916.86
7.2.320.0100.00716.70
7.2.310.0070.01016.89
7.2.300.0120.00616.85
7.2.290.0110.00716.84
7.2.280.0070.01116.86
7.2.270.0050.01516.84
7.2.260.0090.00916.85
7.2.250.0070.01016.81
7.2.240.0110.01116.93
7.2.230.0060.01416.72
7.2.220.0070.01016.88
7.2.210.0120.00616.77
7.2.200.0030.01416.68
7.2.190.0070.01016.71
7.2.180.0090.01216.88
7.2.170.0090.01216.76
7.2.160.0070.01116.78
7.2.150.0060.01716.69
7.2.140.0060.01916.87
7.2.130.0180.00916.92
7.2.120.0150.00316.84
7.2.110.0110.00816.93
7.2.100.0100.01016.82
7.2.90.0090.00816.87
7.2.80.0100.00616.79
7.2.70.0110.00616.91
7.2.60.0150.00316.93
7.2.50.0110.01216.92
7.2.40.0100.00816.75
7.2.30.0100.00816.88
7.2.20.0090.00916.88
7.2.10.0100.01316.80
7.2.00.0030.01516.76

preferences:
33.37 ms | 400 KiB | 5 Q