3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file=fopen("text1.txt","a+"); $text = "Helle Student"; fwrite($file, "$text"); while (!feof($file)) { fgets($file); } fclose($file); ?>

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.0110.00718.43
8.3.50.0150.00721.97
8.3.40.0120.00618.82
8.3.30.0090.00619.22
8.3.20.0000.00820.18
8.3.10.0040.00422.05
8.3.00.0080.00022.54
8.2.180.0090.00618.63
8.2.170.0120.00322.96
8.2.160.0080.00820.76
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0030.00622.30
8.2.100.0040.00817.91
8.2.90.0050.00319.17
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0000.00718.09
8.2.30.0050.00518.07
8.2.20.0020.00517.62
8.2.10.0040.00419.54
8.2.00.0020.00517.73
8.1.280.0070.00725.92
8.1.270.0040.00423.80
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0000.01023.66
8.1.230.0080.00418.83
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00817.43
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0080.00021.88
8.1.150.0060.00318.50
8.1.140.0000.00917.46
8.1.130.0000.00717.84
8.1.120.0000.00817.43
8.1.110.0080.00017.29
8.1.100.0000.00717.43
8.1.90.0040.00417.30
8.1.80.0020.00517.34
8.1.70.0000.00717.40
8.1.60.0040.00417.57
8.1.50.0000.00717.51
8.1.40.0030.00617.51
8.1.30.0030.00617.66
8.1.20.0000.00917.52
8.1.10.0030.00617.64
8.1.00.0040.00417.39
8.0.300.0020.00518.77
8.0.290.0000.00717.04
8.0.280.0030.00318.46
8.0.270.0080.00017.18
8.0.260.0030.00318.43
8.0.250.0070.00017.04
8.0.240.0000.00716.99
8.0.230.0000.00717.00
8.0.220.0000.00717.00
8.0.210.0050.00216.86
8.0.200.0050.00217.07
8.0.190.0040.00417.07
8.0.180.0000.01116.87
8.0.170.0000.00817.04
8.0.160.0040.00417.05
8.0.150.0000.00716.77
8.0.140.0040.00416.85
8.0.130.0030.00313.32
8.0.120.0000.00716.81
8.0.110.0000.00716.79
8.0.100.0040.00416.82
8.0.90.0040.00417.00
8.0.80.0090.00616.88
8.0.70.0040.00416.85
8.0.60.0040.00416.86
8.0.50.0040.00416.86
8.0.30.0140.00817.21
8.0.20.0120.01117.40
8.0.10.0040.00417.10
8.0.00.0110.00817.07
7.4.330.0000.00515.12
7.4.320.0090.00516.50
7.4.300.0030.00716.49
7.4.290.0030.01216.46
7.4.280.0030.00316.37
7.4.270.0040.00416.51
7.4.260.0080.00816.42
7.4.250.0100.00516.35
7.4.240.0030.00816.49
7.4.230.0040.00416.55
7.4.220.0090.01316.53
7.4.210.0260.00616.52
7.4.200.0150.00016.25
7.4.190.0050.00316.58
7.4.160.0140.00716.67
7.4.150.0340.01817.40
7.4.140.0280.01117.86
7.4.130.0300.00616.43
7.4.120.0120.01516.42
7.4.110.0200.02016.45
7.4.100.0490.02116.47
7.4.90.0340.01116.52
7.4.80.0710.02419.39
7.4.70.0930.02016.45
7.4.60.0250.00916.42
7.4.50.0230.01216.36
7.4.40.0110.00722.77
7.4.30.0220.01216.41
7.4.00.0070.01414.96
7.3.330.0060.00613.07
7.3.320.0030.00313.16
7.3.310.0040.00416.34
7.3.300.0070.00716.12
7.3.290.0470.02016.38
7.3.280.0050.01216.30
7.3.270.0550.00517.40
7.3.260.0410.01516.17
7.3.250.0120.02316.23
7.3.240.0120.01716.41
7.3.230.0530.00716.39
7.3.210.0420.01416.15
7.3.200.0840.01919.39
7.3.190.1180.03216.20
7.3.180.0360.01916.36
7.3.170.0810.03616.27
7.3.160.0140.00316.15
7.3.120.0110.00414.48
7.3.10.0120.00416.34
7.3.00.0050.00916.43
7.2.330.0160.01116.52
7.2.320.0110.01116.61
7.2.310.0170.01116.38
7.2.300.0100.02016.50
7.2.290.0480.02416.59
7.2.130.0100.00716.92
7.2.120.0090.00316.71
7.2.110.0060.00616.89
7.2.100.0050.00716.56
7.2.90.0060.01216.93
7.2.80.0080.00816.64
7.2.70.0000.00816.91
7.2.60.0040.00816.68
7.2.50.0100.00316.97
7.2.40.0120.00316.95
7.2.30.0040.00816.98
7.2.20.0100.00316.75
7.2.10.0000.01216.50
7.2.00.0030.00817.94
7.1.250.0040.01115.71
7.1.100.0000.01318.13
7.1.70.0040.00417.03
7.1.60.0130.01319.82
7.1.50.0070.00317.08
7.0.200.0120.00316.79

preferences:
39.15 ms | 401 KiB | 5 Q