3v4l.org

run code in 300+ PHP versions simultaneously
<?php mkdir('foo/bar', 0777, true); mkdir('src/Dir', 0777, true); file_put_contents('src/Dir/Test.php', '<?php echo "Included"'); include __DIR__ . '/src/Dir/Test.php'; include_once __DIR__ . '/foo/bar/../../src/Dir/test.php';

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.0120.00616.75
8.3.50.0060.01316.47
8.3.40.0040.01118.93
8.3.30.0130.00318.61
8.3.20.0030.00620.20
8.3.10.0040.00421.73
8.3.00.0040.00417.78
8.2.180.0070.00716.50
8.2.170.0140.00022.96
8.2.160.0140.00020.39
8.2.150.0030.00624.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00417.61
8.2.110.0090.00022.07
8.2.100.0080.00417.78
8.2.90.0050.00318.80
8.2.80.0040.00517.97
8.2.70.0040.00417.48
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0040.00420.43
8.2.30.0090.00020.90
8.2.20.0030.00518.00
8.2.10.0000.00818.00
8.2.00.0000.00818.07
8.1.270.0080.00023.91
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00624.02
8.1.230.0040.00817.70
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0000.01017.23
8.1.190.0120.00016.98
8.1.180.0000.00918.10
8.1.170.0000.00918.45
8.1.160.0030.00618.92
8.1.150.0080.00020.64
8.1.140.0030.00519.41
8.1.130.0040.00418.79
8.1.120.0030.00517.30
8.1.110.0110.00017.30
8.1.100.0040.00417.37
8.1.90.0070.00317.38
8.1.80.0080.00017.43
8.1.70.0050.00217.31
8.1.60.0080.00417.59
8.1.50.0000.00817.49
8.1.40.0050.00317.59
8.1.30.0040.00417.60
8.1.20.0080.00017.67
8.1.10.0030.00617.52
8.1.00.0040.00417.43
8.0.300.0020.00518.77
8.0.290.0000.00817.00
8.0.280.0030.00318.51
8.0.270.0040.00417.30
8.0.260.0040.00416.96
8.0.250.0030.00317.08
8.0.240.0030.00317.11
8.0.230.0040.00417.04
8.0.220.0050.00216.95
8.0.210.0030.00616.93
8.0.200.0070.00016.98
8.0.190.0030.00617.09
8.0.180.0040.00417.06
8.0.170.0040.00417.06
8.0.160.0000.00717.12
8.0.150.0000.00716.87
8.0.140.0070.00016.97
8.0.130.0050.00013.44
8.0.120.0030.00516.92
8.0.110.0040.00416.88
8.0.100.0040.00416.96
8.0.90.0050.00216.92
8.0.80.0120.00317.08
8.0.70.0030.00516.88
8.0.60.0000.00717.07
8.0.50.0000.00716.86
8.0.30.0080.01117.04
8.0.20.0080.01117.40
8.0.10.0080.00017.07
8.0.00.0100.01016.74
7.4.330.0050.00015.55
7.4.320.0000.00716.47
7.4.300.0000.00616.57
7.4.290.0100.00016.63
7.4.280.0030.00616.62
7.4.270.0030.00316.51
7.4.260.0030.00313.27
7.4.250.0000.00816.55
7.4.240.0000.00716.54
7.4.230.0080.00016.68
7.4.220.0170.01016.45
7.4.210.0090.00616.68
7.4.200.0040.00416.64
7.4.160.0060.01016.38
7.4.150.0110.00817.40
7.4.140.0100.01017.86
7.4.130.0090.00916.41
7.4.120.0120.01016.43
7.4.110.0070.01016.69
7.4.100.0170.00316.57
7.4.90.0030.01416.61
7.4.80.0120.01219.39
7.4.70.0030.01316.43
7.4.60.0070.01016.55
7.4.50.0080.00816.73
7.4.40.0000.01816.13
7.4.30.0070.01116.47
7.4.00.0090.00614.86
7.3.330.0000.00513.14
7.3.320.0000.00613.16
7.3.310.0030.00316.06
7.3.300.0000.00716.32
7.3.290.0120.00416.28
7.3.280.0070.00816.29
7.3.270.0030.01717.40
7.3.260.0090.00816.27
7.3.250.0060.01216.26
7.3.240.0120.00916.24
7.3.230.0130.00616.40
7.3.210.0070.01116.37
7.3.200.0070.01416.22
7.3.190.0060.01016.30
7.3.180.0060.00916.27
7.3.170.0090.01216.23
7.3.160.0030.01316.46
7.3.10.0120.00316.21
7.3.00.0060.00916.39
7.2.330.0000.01716.58
7.2.320.0090.00916.40
7.2.310.0110.00716.41
7.2.300.0070.01016.53
7.2.290.0150.00416.33
7.2.130.0110.00616.82
7.2.120.0110.00416.41
7.2.110.0120.00616.41
7.2.100.0190.00516.22
7.2.90.0530.00715.54
7.2.80.0730.00715.48
7.2.70.0650.01015.76
7.2.60.0510.01015.39
7.2.50.0630.00415.74
7.2.40.0800.00515.49
7.2.30.0620.00415.89
7.2.20.0710.00815.51
7.2.10.0760.00815.56
7.2.00.0630.00315.75
7.1.250.0040.01115.50
7.1.210.0090.00313.98
7.1.200.1710.01013.79
7.1.190.1000.00313.96
7.1.180.1030.00913.84
7.1.170.1110.00313.84
7.1.160.1380.01013.81
7.1.150.1700.00713.62
7.1.140.1040.00614.00
7.1.130.2060.00313.97
7.1.120.1120.00713.97
7.1.110.2000.01013.98
7.1.100.1920.01314.02
7.1.90.0100.01013.90
7.1.80.0240.00914.02
7.1.70.1510.01013.93
7.1.60.0420.01631.81
7.1.50.0320.00632.03
7.1.40.1260.00631.90
7.1.30.0660.01732.00
7.1.20.1520.00331.83
7.1.10.1360.00713.96
7.1.00.1610.00314.04
7.0.310.1130.00913.03
7.0.300.0860.00613.27
7.0.290.0890.01013.38
7.0.280.1000.00313.57
7.0.270.1200.00713.22
7.0.260.1310.00313.39
7.0.250.2300.00713.53
7.0.240.1500.00313.46
7.0.230.0070.01113.59
7.0.220.1250.01013.43
7.0.210.1120.01313.39
7.0.200.0200.01013.49
7.0.190.0990.00313.44
7.0.180.0610.00713.58
7.0.170.1510.01213.41
7.0.160.1580.00313.43
7.0.150.1960.00313.60
7.0.140.0070.01013.43
7.0.130.2570.00313.25
7.0.120.2880.00313.08
7.0.110.0080.01313.47
7.0.100.1860.01013.61
7.0.90.0130.00013.51
7.0.80.0100.01013.25
7.0.70.1920.01013.24
7.0.60.1420.00313.18
7.0.50.2630.00913.43
7.0.40.1790.00613.13
7.0.30.1900.01013.57
7.0.20.0120.00813.59
7.0.10.0610.00313.36
7.0.00.2560.01013.31

preferences:
43.03 ms | 400 KiB | 5 Q