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); $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.70.0040.01218.18
8.3.60.0150.00018.31
8.3.50.0070.00918.21
8.3.40.0000.01418.72
8.3.30.0090.00618.38
8.3.20.0040.00420.84
8.3.10.0080.00021.70
8.3.00.0030.00519.68
8.2.190.0080.00816.58
8.2.180.0170.00316.75
8.2.170.0120.00322.96
8.2.160.0170.00319.09
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00720.38
8.2.120.0040.00426.35
8.2.110.0040.00422.09
8.2.100.0000.01117.91
8.2.90.0000.00818.98
8.2.80.0000.00817.97
8.2.70.0030.00517.38
8.2.60.0060.00317.80
8.2.50.0060.00318.10
8.2.40.0080.00020.60
8.2.30.0070.00019.14
8.2.20.0030.00518.05
8.2.10.0060.00318.04
8.2.00.0030.00318.27
8.1.280.0120.00925.92
8.1.270.0040.00424.01
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0000.00923.96
8.1.230.0080.00322.13
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0040.00418.44
8.1.160.0000.00718.87
8.1.150.0040.00420.14
8.1.140.0060.00319.61
8.1.130.0070.00018.85
8.1.120.0040.00417.51
8.1.110.0050.00317.32
8.1.100.0040.00417.35
8.1.90.0040.00417.32
8.1.80.0000.00717.47
8.1.70.0030.00317.35
8.1.60.0030.00517.56
8.1.50.0070.00017.52
8.1.40.0050.00317.40
8.1.30.0040.00417.55
8.1.20.0040.00417.47
8.1.10.0000.00917.49
8.1.00.0060.00317.39
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.39
8.0.270.0070.00017.28
8.0.260.0020.00519.04
8.0.250.0000.00816.99
8.0.240.0060.00317.00
8.0.230.0040.00416.97
8.0.220.0030.00316.95
8.0.210.0090.00016.82
8.0.200.0030.00316.86
8.0.190.0100.00016.91
8.0.180.0040.00416.84
8.0.170.0040.00416.85
8.0.160.0080.00016.90
8.0.150.0070.00016.88
8.0.140.0030.00516.87
8.0.130.0050.00013.36
8.0.120.0000.00716.87
8.0.110.0070.00016.88
8.0.100.0000.00816.81
8.0.90.0040.00416.89
8.0.80.0040.01116.89
8.0.70.0070.00017.04
8.0.60.0050.00316.96
8.0.50.0030.00516.88
8.0.30.0090.00817.05
8.0.20.0090.01217.40
8.0.10.0020.00516.80
8.0.00.0030.01516.82
7.4.330.0000.00515.55
7.4.320.0030.00316.40
7.4.300.0000.00616.39
7.4.290.0070.00016.48
7.4.280.0040.00416.47
7.4.270.0070.00016.50
7.4.260.0050.00516.44
7.4.250.0000.00716.31
7.4.240.0000.00716.46
7.4.230.0070.00016.60
7.4.220.0120.00616.60
7.4.210.0080.00816.65
7.4.200.0040.00416.46
7.4.160.0050.01316.35
7.4.150.0120.00617.40
7.4.140.0110.00917.86
7.4.130.0110.00816.59
7.4.120.0090.01016.54
7.4.110.0120.00616.50
7.4.100.0030.01416.38
7.4.90.0070.01016.48
7.4.80.0120.00919.39
7.4.70.0140.00716.45
7.4.60.0140.00316.52
7.4.50.0060.00916.57
7.4.40.0060.01016.37
7.4.30.0090.01216.47
7.4.00.0030.01414.90
7.3.330.0050.00013.17
7.3.320.0000.00513.05
7.3.310.0030.00316.23
7.3.300.0080.00016.23
7.3.290.0000.00716.23
7.3.280.0090.00716.25
7.3.270.0100.00717.40
7.3.260.0160.00716.29
7.3.250.0110.00816.20
7.3.240.0120.00516.28
7.3.230.0100.00716.23
7.3.210.0040.01516.18
7.3.200.0100.00716.35
7.3.190.0100.00716.38
7.3.180.0170.00716.42
7.3.170.0090.01116.39
7.3.160.0100.01016.29
7.3.00.0040.00816.76
7.2.330.0160.00316.43
7.2.320.0150.00616.41
7.2.310.0100.01316.42
7.2.300.0110.00616.55
7.2.290.0040.01216.55
7.2.130.0000.01016.82
7.2.120.0040.00716.59
7.2.110.0040.00716.71
7.2.100.0040.00416.45
7.2.90.0030.00816.78
7.2.80.0060.00616.81
7.2.70.0060.00616.52
7.2.60.0040.01216.85
7.2.50.0060.00616.93
7.2.40.0040.00716.84
7.2.30.0000.01116.82
7.2.20.0040.00816.83
7.2.10.0090.00316.66
7.2.00.0080.00416.79
7.1.250.0070.00315.71
7.1.240.0090.00615.66
7.1.230.0030.00915.85
7.1.220.0030.00615.68
7.1.210.0000.01015.60
7.1.200.0060.00915.73
7.1.190.0070.00715.66
7.1.180.0030.00715.56
7.1.170.0030.00715.75
7.1.160.0070.00415.91
7.1.150.0030.01015.58
7.1.140.0050.00515.82
7.1.130.0070.00315.51
7.1.120.0070.00715.45
7.1.110.0060.00315.66
7.1.100.0000.01315.56
7.1.90.0070.00415.81
7.1.80.0070.00715.67
7.1.70.0080.00316.28
7.1.60.0060.00716.38
7.1.50.0160.00624.95
7.1.40.0080.01424.77
7.1.30.0070.01424.88
7.1.20.0130.00825.10
7.1.10.0100.00316.09
7.1.00.0040.00716.04
7.0.330.0070.00315.26
7.0.320.0170.00015.12
7.0.310.0040.00715.55
7.0.300.0060.00615.51
7.0.290.0070.00715.53
7.0.280.0070.00715.07
7.0.270.0160.00015.26
7.0.260.0040.00815.43
7.0.250.0030.01015.13
7.0.240.0000.00915.18
7.0.230.0080.00615.25
7.0.220.0050.00515.22
7.0.210.0040.00715.42
7.0.200.0060.00515.86
7.0.190.0070.00516.01
7.0.180.0040.00815.70
7.0.170.0020.01015.71
7.0.160.0030.01115.77
7.0.150.0020.01115.78
7.0.140.0010.00915.77
7.0.130.0030.01015.92
7.0.120.0020.01015.95
7.0.110.0070.00515.86
7.0.100.0020.01015.81
7.0.90.0070.00715.69
7.0.80.0060.00815.92
7.0.70.0040.00815.78
7.0.60.0100.00315.80
7.0.50.0010.01115.68
7.0.40.0070.00814.85
7.0.30.0020.00914.84
7.0.20.0080.00614.96
7.0.10.0060.00814.79
7.0.00.0060.00814.77
5.6.380.0070.00714.04

preferences:
46.44 ms | 401 KiB | 5 Q