3v4l.org

run code in 500+ PHP versions simultaneously
<?php // simulate a file from given string // return string fileName function virtualFile(string $content):string { return 'data://text/plain,'.urlencode($content); } $myString = "abc"; $fileName = virtualFile($myString); $myStringCopy = file_get_contents($fileName); //test var_dump($myString === $myStringCopy); //bool(true)

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.5.30.0100.01019.21
8.5.20.0040.00319.42
8.5.10.0090.00919.96
8.5.00.0100.01124.66
8.4.180.0130.00919.54
8.4.170.0130.00923.77
8.4.160.0130.00823.93
8.4.150.0030.00316.81
8.4.140.0100.01017.73
8.4.130.0040.00517.64
8.4.120.0080.01024.25
8.4.110.0140.00622.70
8.4.100.0120.00917.69
8.4.90.0120.00518.82
8.4.80.0120.01017.98
8.4.70.0120.00917.64
8.4.60.0050.00618.77
8.4.50.0110.00917.53
8.4.40.0070.00318.80
8.4.30.0120.00320.40
8.4.20.0140.00717.94
8.4.10.0040.00421.93
8.3.300.0110.00918.30
8.3.290.0140.00818.48
8.3.280.0130.00818.29
8.3.270.0100.00916.65
8.3.260.0060.01216.78
8.3.250.0130.00718.70
8.3.240.0110.00917.30
8.3.230.0090.01016.46
8.3.220.0100.00817.20
8.3.210.0110.01016.60
8.3.200.0040.00516.33
8.3.190.0110.00817.03
8.3.180.0130.00616.43
8.3.170.0190.00016.40
8.3.160.0090.00916.62
8.3.150.0120.00416.96
8.3.140.0070.00017.24
8.3.130.0040.00416.54
8.3.120.0030.00618.95
8.3.110.0040.00420.94
8.3.100.0080.00424.06
8.3.90.0070.00726.77
8.3.80.0060.00316.38
8.3.70.0070.00716.58
8.3.60.0110.01118.41
8.3.50.0040.01120.13
8.3.40.0070.00720.34
8.3.30.0080.00818.85
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.300.0140.00617.99
8.2.290.0130.00620.29
8.2.280.0080.01020.09
8.2.270.0080.01116.80
8.2.260.0060.01218.82
8.2.250.0100.00720.61
8.2.240.0000.01018.97
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0150.00426.77
8.2.200.0000.00816.38
8.2.190.0120.01216.75
8.2.180.0040.01125.92
8.2.170.0120.00619.09
8.2.160.0070.00722.96
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.12
8.2.110.0060.00322.30
8.2.100.0080.00317.78
8.2.90.0030.00518.94
8.2.80.0040.00418.82
8.2.70.0000.00917.75
8.2.60.0090.00017.80
8.2.50.0070.00418.07
8.2.40.0040.00418.20
8.2.30.0080.00018.02
8.2.20.0040.00419.12
8.2.10.0040.00418.12
8.2.00.0000.00719.36
8.1.340.0100.00917.77
8.1.330.0120.00620.05
8.1.320.0110.00816.40
8.1.310.0000.00816.73
8.1.300.0080.00816.02
8.1.290.0000.00818.88
8.1.280.0180.00625.92
8.1.270.0120.00324.66
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00320.77
8.1.230.0070.00417.64
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0090.00018.50
8.1.160.0040.00418.81
8.1.150.0050.00518.48
8.1.140.0000.00717.42
8.1.130.0030.00519.01
8.1.120.0000.00717.44
8.1.110.0030.00617.42
8.1.100.0000.00717.39
8.1.90.0130.00517.28
8.1.80.0080.00817.33
8.1.70.0080.00817.30
8.1.60.0180.00017.47
8.1.50.0160.00017.47
8.1.40.0150.00417.53
8.1.30.0150.00317.66
8.1.20.0110.00417.54
8.1.10.0110.00317.54
8.1.00.0100.00317.46
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00718.46
8.0.270.0000.00716.75
8.0.260.0070.00018.41
8.0.250.0000.00716.89
8.0.240.0000.00616.98
8.0.230.0000.00716.93
8.0.220.0060.00716.80
8.0.210.0080.00716.94
8.0.200.0160.00316.87
8.0.190.0130.00416.96
8.0.180.0110.00416.82
8.0.170.0130.00016.80
8.0.160.0140.00217.02
8.0.150.0120.00616.84
8.0.140.0100.00616.75
8.0.130.0160.00016.88
8.0.120.0100.00616.80
8.0.110.0080.00616.82
8.0.100.0150.00016.79
8.0.90.0100.00516.91
8.0.80.0110.00416.88
8.0.70.0110.00516.82
8.0.60.0110.00316.72
8.0.50.0110.00516.89
8.0.30.0140.00316.81
8.0.20.0080.00816.86
8.0.10.0140.00316.82
7.4.330.0050.00015.55
7.4.320.0000.00716.65
7.4.300.0140.00416.37
7.4.290.0130.00416.48
7.4.280.0100.00516.40
7.4.270.0120.00816.59
7.4.260.0110.00416.48
7.4.250.0110.00716.57
7.4.240.0130.00516.47
7.4.230.0110.00716.46
7.4.220.0090.00616.58
7.4.210.0070.00716.43
7.4.200.0080.00616.52
7.4.190.0040.00716.50
7.4.180.0130.00016.64
7.4.160.0140.00016.37
7.4.150.0110.00416.50
7.4.140.0000.00916.44
7.4.130.0110.00016.50
7.4.120.0110.00316.50
7.4.110.0090.00516.37
7.4.100.0060.00916.57
7.4.90.0080.00316.59
7.4.80.0070.00516.50
7.4.70.0030.00916.49
7.4.60.0160.00016.51
7.4.50.0080.00516.23
7.4.40.0110.00416.37
7.4.30.0150.00016.30
7.4.20.0090.00316.39
7.4.10.0090.00316.45
7.4.00.0100.00316.34

preferences:
55.76 ms | 1230 KiB | 5 Q