3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stream = fopen("php://temp", "r+"); fwrite($stream, "0123456789"); rewind($stream); var_dump(fread($stream, 10), ftell($stream), feof($stream)); var_dump(fread($stream, 1), ftell($stream), feof($stream)); $stream = fopen("php://memory", "r+"); fwrite($stream, "0123456789"); rewind($stream); var_dump(fread($stream, 10), ftell($stream), feof($stream)); var_dump(fread($stream, 1), ftell($stream), feof($stream));

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.0070.01016.75
8.3.50.0100.01016.59
8.3.40.0120.00418.53
8.3.30.0070.00718.34
8.3.20.0050.00324.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.180.0220.00825.92
8.2.170.0140.00018.80
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00817.50
8.2.110.0030.00722.25
8.2.100.0090.00317.78
8.2.90.0030.00517.91
8.2.80.0050.00319.17
8.2.70.0060.00317.38
8.2.60.0040.00417.25
8.2.50.0040.00418.10
8.2.40.0000.00719.40
8.2.30.0040.00419.09
8.2.20.0050.00217.98
8.2.10.0040.00419.19
8.2.00.0020.00519.18
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0120.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.93
8.1.230.0070.00320.89
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00717.13
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0060.00319.01
8.1.150.0100.00018.82
8.1.140.0030.00320.27
8.1.130.0070.00020.07
8.1.120.0080.00017.30
8.1.110.0050.00317.29
8.1.100.0000.00717.32
8.1.90.0040.00417.40
8.1.80.0070.00417.37
8.1.70.0000.00717.40
8.1.60.0000.00817.39
8.1.50.0080.00017.46
8.1.40.0040.00417.49
8.1.30.0000.00817.48
8.1.20.0040.00417.41
8.1.10.0040.00417.41
8.1.00.0040.00417.32
8.0.300.0040.00420.05
8.0.290.0080.00016.75
8.0.280.0040.00418.29
8.0.270.0000.00716.82
8.0.260.0060.00020.24
8.0.250.0070.00016.89
8.0.240.0050.00217.02
8.0.230.0000.00716.97
8.0.220.0030.00316.89
8.0.210.0030.00416.82
8.0.200.0030.00317.01
8.0.190.0030.00616.92
8.0.180.0000.00716.96
8.0.170.0090.00016.86
8.0.160.0000.00716.80
8.0.150.0040.00416.93
8.0.140.0000.00716.86
8.0.130.0030.00313.31
8.0.120.0040.00416.91
8.0.110.0000.00716.71
8.0.100.0040.00416.82
8.0.90.0050.00316.85
8.0.80.0050.01216.85
8.0.70.0000.00816.71
8.0.60.0000.00716.90
8.0.50.0040.00416.75
8.0.30.0140.00316.98
8.0.20.0110.00817.00
8.0.10.0040.00416.98
8.0.00.0070.01816.55
7.4.330.0050.00015.55
7.4.320.0040.00416.46
7.4.300.0000.00716.55
7.4.290.0030.00316.57
7.4.280.0040.00416.58
7.4.270.0030.00316.44
7.4.260.0030.00313.23
7.4.250.0000.00716.49
7.4.240.0030.00316.36
7.4.230.0000.00716.36
7.4.220.0020.00516.60
7.4.210.0110.00816.55
7.4.200.0040.00416.50
7.4.130.0120.01116.52
7.4.120.0080.00816.34
7.4.110.0070.01016.38
7.4.100.0110.00716.39
7.4.90.0060.01216.04
7.4.80.0120.00515.98
7.4.70.0090.00816.08
7.4.60.0160.00216.26
7.4.50.0090.01016.04
7.4.40.0140.00716.30
7.4.30.0120.01116.13
7.4.20.0090.01016.06
7.4.10.0070.01016.19
7.4.00.0110.00816.21
7.3.330.0040.00416.27
7.3.320.0030.00313.11
7.3.310.0060.00016.15
7.3.300.0000.00616.28
7.3.290.0060.01016.18
7.3.260.0090.00916.43
7.3.230.0060.01216.16
7.3.210.0110.00716.04
7.3.200.0090.00816.05
7.3.190.0090.00916.08
7.3.180.0120.00816.31
7.3.170.0090.01016.07
7.3.160.0100.01016.08
7.3.150.0130.00616.03
7.3.140.0100.00916.44
7.3.130.0120.00616.26
7.3.120.0130.00716.09
7.3.110.0060.01415.91
7.3.100.0110.00816.30
7.3.90.0110.00716.24
7.3.80.0070.01215.97
7.3.70.0110.01016.17
7.3.60.0110.00815.87
7.3.50.0080.01016.14
7.3.40.0120.00615.88
7.3.30.0110.00716.11
7.3.20.0360.01315.98
7.3.10.0120.00615.93
7.3.00.0110.01115.99
7.2.330.0120.00616.27
7.2.320.0110.00816.29
7.2.310.0080.01116.33
7.2.300.0120.00616.36
7.2.290.0090.01316.28
7.2.280.0120.00716.35
7.2.270.0120.00516.13
7.2.260.0120.00616.12
7.2.250.0100.01116.33
7.2.240.0110.01016.21
7.2.230.0120.00616.17
7.2.220.0060.01616.30
7.2.210.0110.00916.12
7.2.200.0110.01016.29
7.2.190.0050.01416.12
7.2.180.0090.01116.06
7.2.170.0020.01716.04
7.2.160.0160.00316.39
7.2.150.0120.01016.13
7.2.140.0090.01216.25
7.2.130.0140.00515.97
7.2.120.0080.01116.26
7.2.110.0100.00816.15
7.2.100.0080.01016.30
7.2.90.0430.00516.24
7.2.80.0140.00616.30
7.2.70.0080.01116.38
7.2.60.0060.01616.29
7.2.50.0120.00816.12
7.2.40.0130.00816.20
7.2.30.0070.01416.00
7.2.20.0100.00916.29
7.2.10.0120.01116.00
7.2.00.0220.00916.15
7.1.330.0150.01515.52
7.1.320.0260.00315.71
7.1.310.0250.00315.58
7.1.300.0380.00315.65
7.1.290.0210.01115.55
7.1.280.0210.01215.49
7.1.270.0180.01015.49
7.1.260.0290.00415.61
7.1.250.0190.01115.39
7.1.240.0250.00515.51
7.1.230.0220.01515.27
7.1.220.0190.01215.46
7.1.210.0200.01115.40
7.1.200.0270.00315.37
7.1.190.0260.00315.45
7.1.180.0240.00715.37
7.1.170.0210.01115.26
7.1.160.0260.00915.45
7.1.150.0230.00715.52
7.1.140.0210.00815.44
7.1.130.0220.01115.58
7.1.120.0350.00315.48
7.1.110.0180.01215.48
7.1.100.0240.00515.48
7.1.90.0190.01015.41
7.1.80.0250.00315.47
7.1.70.0170.01415.47
7.1.60.0230.00615.40
7.1.50.0270.00215.48
7.1.40.0290.00015.37
7.1.30.0200.00815.57
7.1.20.0320.01015.39
7.1.10.0230.01115.44
7.1.00.0210.00915.44
7.0.330.0170.01115.37
7.0.320.0230.00715.30
7.0.310.0210.00515.17
7.0.300.0220.00615.02
7.0.290.0310.00015.21
7.0.280.0260.00315.04
7.0.270.0210.00315.11
7.0.260.0260.00415.13
7.0.250.0200.00915.15
7.0.240.0220.00715.16
7.0.230.0210.00515.14
7.0.220.0170.01115.36
7.0.210.0250.00715.11
7.0.200.0240.00515.20
7.0.190.0210.01215.33
7.0.180.0170.01015.11
7.0.170.0230.00415.32
7.0.160.0220.00515.12
7.0.150.0270.00015.10
7.0.140.0240.00415.31
7.0.130.0260.00215.11
7.0.120.0100.01315.06
7.0.110.0170.00914.82
7.0.100.0240.00414.93
7.0.90.0370.00315.19
7.0.80.0230.01015.12
7.0.70.0280.00315.04
7.0.60.0190.00815.20
7.0.50.0280.00715.11
7.0.40.0170.01215.31
7.0.30.0210.01415.16
7.0.20.0000.01815.09
7.0.10.0220.00415.09
7.0.00.0150.01515.13
5.6.400.0210.01215.84
5.6.390.0260.01315.71
5.6.380.0200.01015.84
5.6.370.0190.01315.76
5.6.360.0180.01315.68
5.6.350.0230.01015.70
5.6.340.0170.01415.76
5.6.330.0230.00915.58
5.6.320.0170.01215.84
5.6.310.0320.00815.68
5.6.300.0190.01215.64
5.6.290.0180.01115.41
5.6.280.0100.02115.68
5.6.270.0220.00915.80
5.6.260.0130.01315.48
5.6.250.0220.00715.76
5.6.240.0180.01215.84
5.6.230.0150.01515.77
5.6.220.0220.01315.63
5.6.210.0150.01515.67
5.6.200.0180.01115.82
5.6.190.0220.01515.73
5.6.180.0200.01615.95
5.6.170.0180.01315.62
5.6.160.0200.01215.68
5.6.150.0180.01215.89
5.6.140.0340.01015.73
5.6.130.0230.00915.76
5.6.120.0240.00715.94
5.6.110.0170.01115.83
5.6.100.0110.00815.53
5.6.90.0140.01515.88
5.6.80.0150.00315.60
5.6.70.0030.01415.74
5.6.60.0140.01115.72
5.6.50.0120.00815.70
5.6.40.0060.01315.50
5.6.30.0070.01315.88
5.6.20.0060.01415.51
5.6.10.0210.00715.63
5.6.00.0090.01415.70
5.5.380.0230.00815.57
5.5.370.0120.01515.57
5.5.360.0230.00915.91
5.5.350.0220.00715.53
5.5.340.0230.00715.47
5.5.330.0220.00915.89
5.5.320.0160.01915.49
5.5.310.0180.01115.69
5.5.300.0280.00515.78
5.5.290.0170.01415.73
5.5.280.0130.01715.95
5.5.270.0170.01215.89
5.5.260.0150.01515.79
5.5.250.0190.01615.61
5.5.240.0160.01915.75
5.5.230.0210.01515.68
5.5.220.0200.01715.59
5.5.210.0090.02215.70
5.5.200.0150.01515.45
5.5.190.0240.01115.74
5.5.180.0240.00615.71
5.5.170.0200.01215.88
5.5.160.0210.01015.62
5.5.150.0200.00815.62
5.5.140.0200.01015.62
5.5.130.0210.00915.61
5.5.120.0220.00715.50
5.5.110.0130.01615.60
5.5.100.0150.01515.40
5.5.90.0170.01215.64
5.5.80.0210.01015.93
5.5.70.0240.00915.58
5.5.60.0300.00315.73
5.5.50.0200.00815.52
5.5.40.0140.01715.74
5.5.30.0260.00415.60
5.5.20.0220.00915.38
5.5.10.0260.00515.57
5.5.00.0170.01215.39
5.4.450.0200.00312.65
5.4.440.0130.00912.33
5.4.430.0100.01012.62
5.4.420.0220.00712.60
5.4.410.0190.00512.43
5.4.400.0220.00012.53
5.4.390.0100.01412.58
5.4.380.0170.01112.42
5.4.370.0160.00712.34
5.4.360.0150.00812.38
5.4.350.0170.00612.42
5.4.340.0190.00312.36
5.4.330.0130.00912.31
5.4.320.0070.01412.46
5.4.310.0190.00312.41
5.4.300.0180.00512.56
5.4.290.0140.00712.32
5.4.280.0080.01412.57
5.4.270.0160.00512.50
5.4.260.0120.01212.67
5.4.250.0180.00512.49
5.4.240.0150.00812.57
5.4.230.0220.00012.58
5.4.220.0110.01412.29
5.4.210.0150.00812.61
5.4.200.0140.01012.41
5.4.190.0180.00512.36
5.4.180.0210.00712.58
5.4.170.0200.00412.33
5.4.160.0190.00412.41
5.4.150.0170.00612.53
5.4.140.0110.01112.35
5.4.130.0120.00912.50
5.4.120.0150.00712.38
5.4.110.0110.01112.42
5.4.100.0200.00412.47
5.4.90.0140.00712.54
5.4.80.0120.01012.52
5.4.70.0230.00312.50
5.4.60.0160.00812.59
5.4.50.0210.00012.35
5.4.40.0150.00512.46
5.4.30.0160.00712.42
5.4.20.0110.01212.49
5.4.10.0160.00512.46
5.4.00.0130.01012.47
5.3.290.0120.01213.10
5.3.280.0180.01312.91
5.3.270.0140.01112.96
5.3.260.0200.00613.08
5.3.250.0170.00612.96
5.3.240.0120.01212.80
5.3.230.0140.00812.78
5.3.220.0130.01012.97
5.3.210.0190.00512.82
5.3.200.0100.01612.80
5.3.190.0190.00312.91
5.3.180.0180.00812.94
5.3.170.0140.00813.05
5.3.160.0190.00413.03
5.3.150.0150.00912.95
5.3.140.0130.01313.03
5.3.130.0150.00813.02
5.3.120.0170.00712.97
5.3.110.0190.00313.04
5.3.100.0180.00413.00
5.3.90.0090.01413.12
5.3.80.0150.00912.84
5.3.70.0140.00912.66
5.3.60.0160.00512.88
5.3.50.0190.00412.75
5.3.40.0110.01112.84
5.3.30.0140.01012.94
5.3.20.0190.00812.82
5.3.10.0090.01912.68
5.3.00.0150.00712.74
5.2.170.0110.00712.07
5.2.160.0110.00912.09
5.2.150.0120.00612.04
5.2.140.0100.01011.95
5.2.130.0100.01012.05
5.2.120.0130.00512.07
5.2.110.0130.01011.91
5.2.100.0120.00611.93
5.2.90.0140.00411.87
5.2.80.0080.01211.74
5.2.70.0170.00311.86
5.2.60.0100.01011.82
5.2.50.0170.00711.76
5.2.40.0120.00611.82
5.2.30.0090.00911.75
5.2.20.0090.00911.82
5.2.10.0150.00511.62
5.2.00.0100.00811.68
5.1.60.0100.01010.86
5.1.50.0140.00611.20
5.1.40.0080.00811.32
5.1.30.0100.00711.14
5.1.20.0100.00711.04
5.1.10.0100.00711.33
5.1.00.0050.01410.85
5.0.50.0110.00410.04
5.0.40.0050.0119.86
5.0.30.0070.0109.83
5.0.20.0050.01010.11
5.0.10.0100.0059.86
5.0.00.0090.0069.75
4.4.90.0080.0049.72
4.4.80.0090.0029.72
4.4.70.0060.0039.72
4.4.60.0040.0079.72
4.4.50.0050.0059.72
4.4.40.0060.0039.72
4.4.30.0000.0109.72
4.4.20.0090.0009.72
4.4.10.0060.0039.72
4.4.00.0070.0039.72
4.3.110.0100.0009.72
4.3.100.0100.0009.72
4.3.90.0090.0009.72
4.3.80.0090.0029.72
4.3.70.0070.0029.72
4.3.60.0090.0039.72
4.3.50.0030.0069.72
4.3.40.0060.0039.72
4.3.30.0080.0009.72
4.3.20.0080.0009.72
4.3.10.0080.0009.72
4.3.00.0080.0009.72

preferences:
78.37 ms | 400 KiB | 5 Q