3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = file_get_contents(__FILE__); $h = fopen('php://temp', 'r+b'); fwrite($h, $content); rewind($h); var_dump(spl_object_hash($h)); $h2 = fopen('php://temp', 'r+b'); fwrite($h2, 'Nenenenenenenen'); rewind($h2); var_dump(fread($h, 20)); var_dump(fread($h2, 20));

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.0000.01518.97
8.3.30.0120.00618.88
8.3.20.0090.00919.06
8.3.10.0000.00721.76
8.3.00.0050.00319.67
8.2.170.0170.00319.08
8.2.160.0070.01022.96
8.2.150.0080.00025.66
8.2.140.0150.00424.66
8.2.130.0040.00420.52
8.2.120.0090.00626.35
8.2.110.0030.00621.11
8.2.100.0070.00417.78
8.2.90.0040.00417.84
8.2.80.0000.00818.95
8.2.70.0050.00317.36
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0000.00920.59
8.2.30.0000.00819.14
8.2.20.0000.00817.99
8.2.10.0000.00718.11
8.2.00.0040.00418.17
8.1.270.0000.00823.97
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00023.91
8.1.230.0090.00320.96
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0070.00317.36
8.1.190.0050.00317.10
8.1.180.0050.00218.10
8.1.170.0080.00018.46
8.1.160.0050.00218.84
8.1.150.0040.00420.14
8.1.140.0000.00919.45
8.1.130.0030.00318.93
8.1.120.0000.00717.38
8.1.110.0000.00917.25
8.1.100.0000.00817.46
8.1.90.0040.00417.32
8.1.80.0040.00417.43
8.1.70.0000.00717.48
8.1.60.0030.00517.57
8.1.50.0000.00717.46
8.1.40.0040.00417.51
8.1.30.0050.00317.66
8.1.20.0030.00517.73
8.1.10.0040.00417.66
8.1.00.0050.00217.45
8.0.300.0000.00820.09
8.0.290.0050.00216.88
8.0.280.0070.00018.46
8.0.270.0030.00317.21
8.0.260.0000.00819.02
8.0.250.0060.00317.07
8.0.240.0050.00316.99
8.0.230.0000.00717.00
8.0.220.0030.00316.85
8.0.210.0000.00816.84
8.0.200.0030.00317.05
8.0.190.0040.00416.92
8.0.180.0040.00417.00
8.0.170.0070.00017.01
8.0.160.0030.00516.83
8.0.150.0040.00416.87
8.0.140.0030.00316.93
8.0.130.0040.00413.35
8.0.120.0040.00416.97
8.0.110.0070.00017.01
8.0.100.0040.00416.99
8.0.90.0070.00017.01
8.0.80.0030.01317.01
8.0.70.0000.00716.91
8.0.60.0000.00716.99
8.0.50.0000.00816.84
8.0.30.0080.00817.06
8.0.20.0080.01017.40
8.0.10.0040.00417.03
8.0.00.0120.00616.85
7.4.330.0050.00015.55
7.4.320.0000.00816.39
7.4.300.0030.00316.50
7.4.290.0060.00016.56
7.4.280.0000.00716.52
7.4.270.0030.00316.44
7.4.260.0050.00216.44
7.4.250.0030.00516.55
7.4.240.0070.00016.53
7.4.230.0040.00316.36
7.4.220.0060.01216.55
7.4.210.0080.00816.39
7.4.200.0030.00316.66
7.4.160.0040.01516.48
7.4.150.0120.00617.40
7.4.140.0050.01517.86
7.4.130.0140.01116.36
7.4.120.0070.01416.44
7.4.110.0140.00416.47
7.4.100.0140.00316.46
7.4.90.0080.00816.34
7.4.80.0160.00219.39
7.4.70.0140.00316.56
7.4.60.0060.01016.41
7.4.50.0040.01516.55
7.4.40.0030.01316.60
7.4.30.0070.01416.48
7.4.00.0090.00814.86
7.3.330.0000.00613.12
7.3.320.0030.00313.13
7.3.310.0080.00016.16
7.3.300.0000.00716.28
7.3.290.0030.00316.24
7.3.280.0090.00916.27
7.3.270.0090.00917.40
7.3.260.0120.00616.25
7.3.250.0120.01016.30
7.3.240.0110.00716.26
7.3.230.0100.01316.55
7.3.210.0060.00916.18
7.3.200.0150.00616.34
7.3.190.0030.01216.29
7.3.180.0140.00316.25
7.3.170.0030.01316.31
7.3.160.0140.00316.36
7.3.120.0070.01014.85
7.3.110.0060.01114.84
7.3.100.0070.00714.77
7.3.90.0070.00414.84
7.3.80.0070.00514.81
7.3.70.0070.00414.67
7.3.60.0040.00714.82
7.3.50.0030.01014.71
7.3.40.0030.00814.67
7.3.30.0050.00414.72
7.3.20.0030.00816.44
7.3.10.0100.00316.62
7.3.00.0050.00816.54
7.2.330.0120.00616.51
7.2.320.0070.01416.27
7.2.310.0060.01116.48
7.2.300.0090.00816.55
7.2.290.0090.00616.35
7.2.250.0100.00814.86
7.2.240.0030.01514.68
7.2.230.0050.01115.11
7.2.220.0070.00714.71
7.2.210.0050.00714.90
7.2.200.0080.00415.07
7.2.190.0060.00914.73
7.2.180.0030.00714.88
7.2.170.0070.00714.90
7.2.60.0150.00716.77
7.2.00.0070.01118.91
7.1.330.0090.00715.80
7.1.320.0040.00615.68
7.1.310.0080.00815.73
7.1.300.0020.01015.46
7.1.290.0050.00815.69
7.1.280.0070.00515.73
7.1.270.0070.00515.70
7.1.260.0030.01015.59
7.1.200.0090.00315.73
7.1.100.0160.00317.91
7.1.70.0060.00316.88
7.1.60.0030.00917.06
7.1.50.0200.01034.67
7.1.40.0200.01034.19
7.1.30.0170.02034.17
7.1.20.0230.01334.34
7.1.10.0030.01016.41
7.1.00.0030.00716.53
7.0.200.0000.01116.67
7.0.190.0070.00716.52
7.0.180.0000.01716.25
7.0.170.0000.01316.22
7.0.160.0000.01316.00
7.0.150.0100.00316.05
7.0.140.0030.00716.11
7.0.130.0070.00716.38
7.0.120.0000.01016.48
7.0.110.0070.00715.95
7.0.100.0000.01316.31
7.0.90.0030.01016.09
7.0.80.0070.00716.14
7.0.70.0030.01316.08
7.0.60.0070.01016.14
7.0.50.0030.01316.17
7.0.40.0070.01016.35
7.0.30.0000.01316.39
7.0.20.0100.00316.29
7.0.10.0070.01016.36
7.0.00.0030.01016.26

preferences:
56.17 ms | 400 KiB | 5 Q