3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Open a test file for reading and writing */ $fp = fopen("test.txt", "rw"); $rot13_filter = stream_filter_append($fp, "string.rot13", STREAM_FILTER_WRITE); fwrite($fp, "This is "); stream_filter_remove($rot13_filter); fwrite($fp, "a test\n"); rewind($fp); fpassthru($fp); fclose($fp); ?>

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.0000.01518.56
8.3.50.0150.00618.33
8.3.40.0040.01118.84
8.3.30.0120.00318.61
8.3.20.0100.01019.30
8.3.10.0000.00821.95
8.3.00.0140.00420.65
8.2.180.0070.00718.67
8.2.170.0160.00018.94
8.2.160.0070.00722.96
8.2.150.0160.00625.66
8.2.140.0110.00724.66
8.2.130.0110.00817.69
8.2.120.0080.00026.35
8.2.110.0030.00621.96
8.2.100.0070.00420.98
8.2.90.0040.00417.63
8.2.80.0000.00819.00
8.2.70.0030.00517.80
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0080.00018.98
8.2.30.0070.00019.20
8.2.20.0030.00617.93
8.2.10.0000.00817.92
8.2.00.0000.00817.70
8.1.280.0090.01225.92
8.1.270.0090.00918.91
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00322.25
8.1.230.0070.00422.12
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.36
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0000.00818.38
8.1.160.0040.00418.88
8.1.150.0040.00418.85
8.1.140.0040.00422.01
8.1.130.0030.00320.28
8.1.120.0040.00417.40
8.1.110.0000.00817.30
8.1.100.0000.00717.39
8.1.90.0070.00017.43
8.1.80.0000.00717.36
8.1.70.0000.00717.42
8.1.60.0060.00617.54
8.1.50.0040.00417.40
8.1.40.0050.00317.57
8.1.30.0000.00817.67
8.1.20.0040.00417.59
8.1.10.0000.00817.61
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0030.00616.88
8.0.280.0070.00018.49
8.0.270.0030.00317.14
8.0.260.0030.00318.46
8.0.250.0000.00817.04
8.0.240.0040.00416.93
8.0.230.0030.00317.07
8.0.220.0030.00316.85
8.0.210.0000.00716.99
8.0.200.0000.00716.87
8.0.190.0000.00816.98
8.0.180.0040.00416.99
8.0.170.0040.00416.99
8.0.160.0070.00016.96
8.0.150.0050.00216.90
8.0.140.0060.00316.88
8.0.130.0050.00013.36
8.0.120.0080.00016.79
8.0.110.0040.00416.97
8.0.100.0040.00416.95
8.0.90.0040.00416.86
8.0.80.0110.00816.97
8.0.70.0070.00016.95
8.0.60.0040.00416.85
8.0.50.0040.00416.86
8.0.30.0120.00917.07
8.0.20.0180.00017.40
8.0.10.0040.00417.05
8.0.00.0050.01316.69
7.4.330.0000.00515.55
7.4.320.0050.00216.52
7.4.300.0060.00016.46
7.4.290.0030.00316.44
7.4.280.0030.00616.51
7.4.270.0000.00716.45
7.4.260.0040.00216.38
7.4.250.0000.00716.41
7.4.240.0040.00416.35
7.4.230.0030.00316.64
7.4.220.0040.00416.57
7.4.210.0110.00416.56
7.4.200.0070.00016.55
7.4.160.0100.00916.48
7.4.140.0110.00817.86
7.4.130.0040.01316.47
7.4.120.0070.01316.43
7.4.110.0180.00916.47
7.4.100.0100.00716.55
7.4.90.0160.00616.47
7.4.80.0060.01719.39
7.4.70.0080.00916.55
7.4.60.0060.01016.37
7.4.50.0070.00716.44
7.4.40.0130.00316.38
7.4.00.0070.00714.89
7.3.330.0050.00013.12
7.3.320.0000.00513.11
7.3.310.0000.00916.22
7.3.300.0070.00016.18
7.3.290.0070.00016.31
7.3.280.0050.01016.21
7.3.260.0070.01116.31
7.3.240.0090.00916.40
7.3.230.0130.00716.36
7.3.210.0080.00816.45
7.3.200.0160.00016.30
7.3.190.0070.01116.21
7.3.180.0130.00316.50
7.3.170.0160.00316.34
7.3.160.0100.00616.20
7.3.120.0060.01214.61
7.3.110.0040.01414.71
7.3.100.0030.00914.74
7.3.90.0030.01414.38
7.3.80.0000.01414.74
7.3.70.0110.00614.63
7.3.60.0090.00614.74
7.3.50.0030.00614.30
7.3.40.0030.01014.89
7.3.30.0070.00714.47
7.3.20.0060.01016.58
7.3.10.0100.00016.50
7.3.00.0030.01016.61
7.2.330.0140.00416.40
7.2.320.0130.00616.57
7.2.310.0130.00416.66
7.2.300.0080.00816.46
7.2.290.0120.00916.41
7.2.250.0040.01815.05
7.2.240.0100.01014.88
7.2.230.0060.00914.97
7.2.220.0130.00314.78
7.2.210.0060.01214.93
7.2.200.0100.00714.84
7.2.190.0030.01014.78
7.2.180.0070.00714.99
7.2.170.0090.00614.62
7.2.110.0790.01014.52
7.2.100.0230.01014.24
7.2.90.1090.00314.50
7.2.80.0070.01114.62
7.2.70.0730.01314.79
7.2.60.0840.00714.60
7.2.50.1460.00614.84
7.2.40.0760.01314.76
7.2.30.1200.01615.12
7.2.20.0700.00914.67
7.2.10.0380.01114.71
7.2.00.1290.01314.41
7.1.330.0040.01115.90
7.1.320.0000.01215.72
7.1.310.0070.01115.90
7.1.300.0080.00815.46
7.1.290.0040.01115.71
7.1.280.0060.01015.77
7.1.270.0040.00815.55
7.1.260.0030.01015.90
7.1.230.1030.00013.75
7.1.220.1080.01313.37
7.1.210.1130.00613.68
7.1.200.0290.00913.75
7.1.190.0770.00613.80
7.1.180.0810.00613.78
7.1.170.0090.00913.81
7.1.160.0890.00413.55
7.1.150.0760.00713.63
7.1.140.0770.00013.99
7.1.130.0130.00513.81
7.1.120.0770.01013.72
7.1.110.0630.01913.94
7.1.100.0790.00713.77
7.1.90.0990.00313.85
7.1.80.0820.00313.90
7.1.70.0900.00613.91
7.1.60.0950.01131.91
7.1.50.1180.01031.89
7.1.40.1450.01031.54
7.1.30.1430.00031.81
7.1.20.1010.00631.86
7.1.10.1010.00313.23
7.1.00.0630.00413.77
5.6.380.0040.01214.06

preferences:
56.62 ms | 401 KiB | 5 Q