3v4l.org

run code in 300+ PHP versions simultaneously
<?php $File = new SplFileObject(__FILE__); echo 'First dump: Just cast as string<br />'; echo '<pre>', htmlspecialchars((string) $File), '</pre>'; echo 'Ok, now let\'s iterate echoing out $line var created by foreach<br />'; echo '<pre>'; foreach($File as $line) { echo htmlspecialchars($line) . '<br />'; } echo '</pre>'; echo 'Ok, now let\'s echo out the object as string again'; echo '<pre>', htmlspecialchars((string) $File), '</pre>';

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.00018.30
8.3.50.0150.00722.05
8.3.40.0100.00318.54
8.3.30.0140.00318.67
8.3.20.0000.00718.65
8.3.10.0040.00419.16
8.3.00.0030.00323.70
8.2.180.0080.01116.63
8.2.170.0110.00322.96
8.2.160.0130.00020.28
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00019.89
8.2.110.0100.00720.35
8.2.100.0090.00317.84
8.2.90.0030.00319.29
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00217.93
8.2.50.0050.00218.07
8.2.40.0030.00318.16
8.2.30.0030.00521.38
8.2.20.0000.00717.79
8.2.10.0000.00717.86
8.2.00.0090.00017.62
8.1.280.0130.00625.92
8.1.270.0030.00323.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.50
8.1.230.0100.00020.95
8.1.220.0030.00518.77
8.1.210.0040.00418.93
8.1.200.0030.00517.25
8.1.190.0040.00417.39
8.1.180.0030.00318.10
8.1.170.0080.00018.64
8.1.160.0040.00419.04
8.1.150.0040.00418.74
8.1.140.0030.00317.54
8.1.130.0000.00717.77
8.1.120.0040.00417.52
8.1.110.0000.00717.47
8.1.100.0000.00717.47
8.1.90.0050.00317.52
8.1.80.0000.00717.47
8.1.70.0000.00717.45
8.1.60.0080.00017.50
8.1.50.0000.00717.45
8.1.40.0040.00817.60
8.1.30.0000.00817.71
8.1.20.0000.00817.61
8.1.10.0040.00417.57
8.1.00.0040.00417.58
8.0.300.0040.00419.93
8.0.290.0070.00017.18
8.0.280.0030.00318.36
8.0.270.0070.00017.30
8.0.260.0030.00616.84
8.0.250.0000.00816.95
8.0.240.0000.00816.93
8.0.230.0000.00717.03
8.0.220.0040.00416.99
8.0.210.0040.00417.01
8.0.200.0000.00716.94
8.0.190.0000.00717.08
8.0.180.0050.00317.03
8.0.170.0040.00417.01
8.0.160.0040.00417.03
8.0.150.0000.00716.91
8.0.140.0000.00816.95
8.0.130.0060.00013.43
8.0.120.0030.00316.95
8.0.110.0000.00717.01
8.0.100.0040.00416.94
8.0.90.0040.00416.87
8.0.80.0130.00316.98
8.0.70.0070.00016.88
8.0.60.0070.00016.95
8.0.50.0040.00416.90
8.0.30.0100.00817.06
8.0.20.0080.01217.40
8.0.10.0080.00016.91
8.0.00.0110.00716.79
7.4.330.0000.00514.69
7.4.320.0030.00616.68
7.4.300.0000.00616.64
7.4.290.0000.00716.60
7.4.280.0050.00316.60
7.4.270.0000.00716.64
7.4.260.0060.00013.36
7.4.250.0050.00316.61
7.4.240.0000.00716.57
7.4.230.0030.00516.71
7.4.220.0070.01316.61
7.4.210.0080.00916.56
7.4.200.0040.00416.71
7.4.190.0000.00716.71
7.4.160.0160.00016.71
7.4.150.0080.01217.40
7.4.140.0110.01117.86
7.4.130.0080.00816.63
7.4.120.0070.01116.41
7.4.110.0140.00316.58
7.4.100.0060.01616.60
7.4.90.0170.00716.74
7.4.80.0090.00919.39
7.4.70.0110.01116.46
7.4.60.0030.01316.40
7.4.50.0030.00616.40
7.4.40.0110.00422.52
7.4.30.0000.01716.61
7.4.00.0090.01015.07
7.3.330.0060.00013.18
7.3.320.0020.00213.29
7.3.310.0070.00016.35
7.3.300.0030.00316.38
7.3.290.0080.00816.35
7.3.280.0100.00516.35
7.3.270.0120.01217.40
7.3.260.0120.00518.24
7.3.250.0080.01416.50
7.3.240.0070.01016.60
7.3.230.0070.01016.41
7.3.210.0070.01016.52
7.3.200.0040.01819.39
7.3.190.0100.00916.42
7.3.180.0120.00316.45
7.3.170.0080.00816.46
7.3.160.0100.00616.51
7.3.120.0070.00814.76
7.3.110.0090.00714.86
7.3.100.0070.00714.93
7.3.90.0070.00714.95
7.3.80.0050.00714.84
7.3.70.0090.00614.94
7.3.60.0090.00314.67
7.3.50.0040.00714.89
7.3.40.0060.00814.85
7.3.30.0060.01014.70
7.3.20.0030.01316.57
7.3.10.0040.00916.47
7.3.00.0050.01016.54
7.2.330.0100.01616.53
7.2.320.0100.01316.78
7.2.310.0120.00916.72
7.2.300.0150.00316.69
7.2.290.0110.00616.75
7.2.250.0130.00614.87
7.2.240.0050.01014.89
7.2.230.0020.01615.11
7.2.220.0120.00215.14
7.2.210.0030.01115.09
7.2.200.0020.01014.94
7.2.190.0060.00915.04
7.2.180.0050.01015.24
7.2.170.0090.00914.92
7.2.160.0100.00715.03
7.2.150.0110.00717.07
7.2.140.0000.01417.02
7.2.130.0060.01217.14
7.2.120.0080.00817.05
7.2.110.0100.00317.07
7.2.100.0100.00616.77
7.2.90.0030.00916.70
7.2.80.0120.00616.88
7.2.70.0100.00716.89
7.2.60.0080.00816.99
7.2.50.0060.00917.08
7.2.40.0090.00617.05
7.2.30.0070.00716.77
7.2.20.0090.00617.02
7.2.10.0090.00316.87
7.2.00.0050.00818.25
7.1.330.0060.00915.63
7.1.320.0050.00815.83
7.1.310.0090.00315.79
7.1.300.0080.00715.69
7.1.290.0090.00715.88
7.1.280.0050.01215.64
7.1.270.0040.01115.70
7.1.260.0090.00715.81
7.1.250.0090.00615.80
7.1.200.0060.00615.49
7.1.100.0000.01118.12
7.1.70.0070.00717.25
7.1.60.0090.01519.40
7.1.50.0180.00716.99
7.1.00.0070.03322.42
7.0.200.0070.00416.80
7.0.140.0000.07322.18
7.0.70.0030.07021.72
7.0.60.0000.05321.86
7.0.50.0000.06722.05
7.0.40.0070.06320.14
7.0.30.0000.07020.13
7.0.20.0000.08020.08
7.0.10.0030.05720.02
7.0.00.0030.09020.07
5.6.280.0070.06720.89
5.6.220.0100.07020.67
5.6.210.0130.08020.61
5.6.200.0100.04321.10
5.6.190.0130.04721.13
5.6.180.0000.05021.12
5.6.170.0070.08721.02
5.6.160.0100.07720.90
5.6.150.0070.07721.17
5.6.140.0070.08321.02
5.6.130.0100.04720.92
5.6.120.0030.09321.09
5.6.110.0070.08720.92
5.6.100.0100.07721.00
5.6.90.0200.06321.00
5.6.80.0100.07320.52
5.6.70.0030.08020.40
5.6.60.0030.05320.46
5.6.50.0130.06020.32
5.6.40.0030.07320.41
5.6.30.0070.08320.29
5.6.20.0070.07720.30
5.6.10.0030.05320.38
5.6.00.0070.05320.38
5.5.360.0030.07020.44
5.5.350.0130.06720.48
5.5.340.0070.07320.86
5.5.330.0070.04320.93
5.5.320.0130.04720.79
5.5.310.0000.05320.82
5.5.300.0170.04020.89
5.5.290.0130.06720.79
5.5.280.0030.08020.88
5.5.270.0070.08720.72
5.5.260.0000.08320.81
5.5.250.0000.09020.73
5.5.240.0130.07020.21
5.5.230.0070.08320.29
5.5.220.0070.07720.27
5.5.210.0100.08020.18
5.5.200.0070.05320.12
5.5.190.0000.07020.22
5.5.180.0070.04720.14
5.5.160.0030.08320.27
5.5.150.0100.03320.20
5.5.140.0000.06020.11
5.5.130.0000.07320.20
5.5.120.0030.04320.14
5.5.110.0070.06320.10
5.5.100.0070.07020.10
5.5.90.0030.08320.10
5.5.80.0100.04320.06
5.5.70.0070.06320.08
5.5.60.0000.05020.14
5.5.50.0070.06720.07
5.5.40.0130.07020.14
5.5.30.0070.08020.05
5.5.20.0030.08020.13
5.5.10.0030.08320.00
5.5.00.0070.08020.04
5.4.450.0030.08319.36
5.4.440.0130.06019.41
5.4.430.0030.08319.13
5.4.420.0030.07019.48
5.4.410.0070.08018.98
5.4.400.0030.07019.15
5.4.390.0000.05719.06
5.4.380.0100.07319.14
5.4.370.0000.08019.14
5.4.360.0070.08018.81
5.4.350.0100.07319.07
5.4.340.0030.08018.84
5.4.320.0030.04718.90
5.4.310.0000.04718.88
5.4.300.0030.07019.11
5.4.290.0000.08019.06
5.4.280.0030.05019.14
5.4.270.0000.05319.22
5.4.260.0030.04019.03
5.4.250.0100.07318.78
5.4.240.0030.06019.22
5.4.230.0000.08719.12
5.4.220.0030.08319.11
5.4.210.0030.05019.14
5.4.200.0070.08019.05
5.4.190.0070.08018.82
5.4.180.0100.05018.77
5.4.170.0100.04019.18
5.4.160.0070.04718.94
5.4.150.0100.07018.76
5.4.140.0100.05316.12
5.4.130.0070.07316.28
5.4.120.0000.07316.38
5.4.110.0030.07716.26
5.4.100.0070.03016.26
5.4.90.0000.04016.34
5.4.80.0030.05716.25
5.4.70.0100.06716.30
5.4.60.0100.06716.23
5.4.50.0030.06316.42
5.4.40.0130.06316.36
5.4.30.0070.06016.30
5.4.20.0000.04316.20
5.4.10.0170.04716.19
5.4.00.0130.06715.85
5.3.290.0030.08014.68
5.3.280.0030.05014.55
5.3.270.0030.04014.60
5.3.260.0000.08314.58
5.3.250.0030.07314.62
5.3.240.0030.05314.46
5.3.230.0130.06714.62
5.3.220.0070.07314.58
5.3.210.0100.07714.57
5.3.200.0100.03714.53
5.3.190.0070.03314.56
5.3.180.0070.06314.57
5.3.170.0070.07714.52
5.3.160.0130.07314.57
5.3.150.0030.07314.43
5.3.140.0100.07714.53
5.3.130.0030.08014.52
5.3.120.0170.06014.38
5.3.110.0030.07014.41
5.3.100.0070.05313.99
5.3.90.0070.07314.01
5.3.80.0070.07314.02
5.3.70.0100.06714.01
5.3.60.0100.07014.00
5.3.50.0000.06713.89
5.3.40.0030.05713.91
5.3.30.0070.05313.91
5.3.20.0100.06713.69
5.3.10.0000.07713.68
5.3.00.0130.07013.61
5.2.170.0070.06012.24
5.2.160.0030.06012.24
5.2.150.0000.06712.24
5.2.140.0000.06712.24
5.2.130.0030.06012.24
5.2.120.0030.03312.24
5.2.110.0070.05312.24
5.2.100.0070.06012.24
5.2.90.0030.05312.24
5.2.80.0100.06012.24
5.2.70.0030.04312.24
5.2.60.0000.05312.24
5.2.50.0000.03012.24
5.2.40.0030.06312.24
5.2.30.0030.06012.24
5.2.20.0070.04312.24
5.2.10.0170.05312.24
5.2.00.0070.06012.24
5.1.60.0000.05312.24
5.1.50.0030.05312.24
5.1.40.0000.02712.24
5.1.30.0000.03712.24
5.1.20.0000.04312.24
5.1.10.0030.05312.24
5.1.00.0000.05712.24
5.0.50.0070.04012.24
5.0.40.0030.04012.24
5.0.30.0000.05712.24
5.0.20.0030.04012.24
5.0.10.0070.03712.24
5.0.00.0000.05712.24
4.4.90.0070.02712.24
4.4.80.0000.01712.24
4.4.70.0000.02712.24
4.4.60.0000.03712.24
4.4.50.0000.03712.24
4.4.40.0000.04712.24
4.4.30.0000.02012.24
4.4.20.0000.03012.24
4.4.10.0000.04012.24
4.4.00.0000.05712.24
4.3.110.0000.03712.24
4.3.100.0000.03712.24
4.3.90.0030.03012.24
4.3.80.0070.05312.24
4.3.70.0000.02012.24
4.3.60.0000.03712.24
4.3.50.0000.02312.24
4.3.40.0000.04312.24
4.3.30.0000.03312.24
4.3.20.0030.02012.24
4.3.10.0000.04012.24
4.3.00.0000.03712.24

preferences:
49.62 ms | 401 KiB | 5 Q