3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = <<<TXT 1 Hello! 2 How 3 are 4 you? TXT; $file = new SplFileObject('php://memory', 'w+'); $file->fwrite($txt); echo 'Seeking line 1...', PHP_EOL; $file->seek(0); echo 'Position in the file: ', $file->ftell(), PHP_EOL; echo 'Rest of the file: ', PHP_EOL, $file->fread(5000); echo PHP_EOL, '-------------', PHP_EOL; echo 'Seeking line 2...', PHP_EOL; $file->seek(1); echo 'Position in the file: ', $file->ftell(), PHP_EOL; echo 'Rest of the file: ', PHP_EOL, $file->fread(5000);

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.4.20.0090.00917.73
8.4.10.0040.00419.63
8.3.150.0160.00318.88
8.3.140.0060.00318.48
8.3.130.0030.00618.26
8.3.120.0060.00318.82
8.3.110.0100.01020.94
8.3.100.0100.00616.34
8.3.90.0100.01026.77
8.3.80.0090.00316.50
8.3.70.0130.00616.58
8.3.60.0040.01118.43
8.3.50.0140.00523.44
8.3.40.0110.00418.67
8.3.30.0060.00918.67
8.3.20.0080.00020.95
8.3.10.0060.00320.20
8.3.00.0080.00021.79
8.2.270.0130.00616.90
8.2.260.0150.00420.07
8.2.250.0080.00018.33
8.2.240.0080.00017.25
8.2.230.0040.01522.58
8.2.220.0040.00437.54
8.2.210.0000.01026.77
8.2.200.0060.00316.63
8.2.190.0180.00316.63
8.2.180.0110.00425.92
8.2.170.0140.00018.96
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00326.16
8.2.110.0030.00620.52
8.2.100.0110.00017.91
8.2.90.0000.00817.75
8.2.80.0040.00418.80
8.2.70.0070.00317.63
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0070.00018.09
8.2.20.0060.00318.09
8.2.10.0040.00419.30
8.2.00.0000.00719.13
8.1.310.0090.00316.66
8.1.300.0040.00420.34
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0080.00020.71
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00922.09
8.1.230.0040.00820.85
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0080.00017.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0040.00418.89
8.1.150.0040.00418.79
8.1.140.0040.00422.06
8.1.130.0030.00320.09
8.1.120.0030.00617.27
8.1.110.0030.00317.30
8.1.100.0070.00017.42
8.1.90.0040.00417.36
8.1.80.0030.00617.45
8.1.70.0030.00617.40
8.1.60.0000.00817.59
8.1.50.0050.00517.50
8.1.40.0000.00817.33
8.1.30.0060.00317.61
8.1.20.0050.00317.61
8.1.10.0060.00317.54
8.1.00.0070.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00218.45
8.0.270.0000.00718.00
8.0.260.0000.00619.98
8.0.250.0030.00316.89
8.0.240.0030.00617.03
8.0.230.0030.00616.84
8.0.220.0090.00016.89
8.0.210.0040.00416.96
8.0.200.0000.00616.83
8.0.190.0070.00016.95
8.0.180.0000.00816.90
8.0.170.0030.00616.91
8.0.160.0040.00416.96
8.0.150.0040.00416.80
8.0.140.0040.00416.75
8.0.130.0000.00513.21
8.0.120.0020.00616.79
8.0.110.0030.00516.81
8.0.100.0000.00716.78
8.0.90.0060.00316.79
8.0.80.0140.00516.95
8.0.70.0000.00816.86
8.0.60.0040.00416.95
8.0.50.0000.00716.92
8.0.30.0060.00516.86
8.0.20.0130.00717.00
8.0.10.0040.00417.14
8.0.00.0150.00916.73
7.4.330.0050.00015.55
7.4.320.0060.00016.53
7.4.300.0000.00616.56
7.4.290.0030.00716.41
7.4.280.0030.00516.54
7.4.270.0000.00716.53
7.4.260.0060.00013.30
7.4.250.0030.00316.46
7.4.240.0060.00116.44
7.4.230.0030.00316.36
7.4.220.0030.00316.48
7.4.210.0060.01116.62
7.4.200.0000.00816.64
7.4.130.0160.01316.39
7.4.120.0090.00916.52
7.4.110.0130.00616.42
7.4.100.0090.00916.61
7.4.90.0110.00516.34
7.4.80.0060.01119.39
7.4.70.0030.01316.61
7.4.60.0090.00916.50
7.4.50.0040.00816.42
7.4.40.0070.01416.60
7.4.10.0050.01214.91
7.4.00.0080.00914.85
7.3.330.0040.00516.10
7.3.320.0050.00313.11
7.3.310.0000.00716.22
7.3.300.0080.00016.16
7.3.290.0000.00616.25
7.3.280.0100.00516.15
7.3.260.0140.00716.15
7.3.240.0060.01016.38
7.3.230.0100.00716.39
7.3.210.0080.00816.29
7.3.200.0120.00916.24
7.3.190.0120.00916.29
7.3.180.0120.00316.23
7.3.170.0120.00316.35
7.3.160.0090.00916.27
7.3.130.0100.00614.64
7.3.120.0030.01314.60
7.3.110.0080.01214.70
7.3.100.0020.01314.58
7.3.90.0070.00814.70
7.3.80.0040.01114.90
7.3.70.0070.00614.51
7.3.60.0070.00914.69
7.3.50.0070.00614.68
7.3.40.0100.00514.64
7.3.30.0070.00614.66
7.3.20.0070.00515.83
7.3.10.0040.01015.98
7.3.00.0090.00615.92
7.2.330.0090.01216.52
7.2.320.0070.01016.63
7.2.310.0040.01316.34
7.2.300.0150.00416.74
7.2.290.0110.00516.42
7.2.260.0060.01215.16
7.2.250.0080.00815.06
7.2.240.0030.01314.89
7.2.230.0070.00914.97
7.2.220.0080.00814.92
7.2.210.0090.00815.05
7.2.200.0070.00914.92
7.2.190.0100.00614.93
7.2.180.0060.00814.89
7.2.170.0060.00814.80
7.2.160.0020.01014.88
7.2.150.0030.00616.82
7.2.140.0080.00716.74
7.2.130.0040.01116.81
7.2.120.0050.00916.77
7.2.110.0050.01016.72
7.2.100.0050.00716.71
7.2.90.0100.00316.73
7.2.80.0100.00516.72
7.2.70.0100.00516.88
7.2.60.0020.01216.65
7.2.50.0050.01016.72
7.2.40.0070.00716.86
7.2.30.0070.00516.86
7.2.20.0050.00516.96
7.2.10.0050.01016.76
7.2.00.0050.00516.77
7.1.330.0000.01313.77
7.1.320.0110.00313.84
7.1.310.0110.00813.70
7.1.300.0110.00714.02
7.1.290.0040.01213.73
7.1.280.0090.00613.63
7.1.270.0490.00613.88
7.1.260.0070.00713.89

preferences:
29.08 ms | 403 KiB | 5 Q