3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = fopen('php://memory', 'w+'); fwrite($f, 'Hello'); ftruncate($f, 2); // in 7.3 changes file pointer to 2 fwrite($f, 'World'); rewind($f); echo addslashes(stream_get_contents($f)); fclose($f);

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.0100.01016.50
8.3.50.0070.01116.39
8.3.40.0040.01418.47
8.3.30.0110.00618.54
8.3.20.0000.00719.06
8.3.10.0050.00323.66
8.3.00.0080.00020.58
8.2.180.0110.00416.50
8.2.170.0140.00018.82
8.2.160.0110.00622.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00321.11
8.2.120.0000.00826.35
8.2.110.0070.00419.39
8.2.100.0100.00617.72
8.2.90.0050.00317.63
8.2.80.0030.00518.61
8.2.70.0080.00017.63
8.2.60.0080.00018.03
8.2.50.0050.00318.07
8.2.40.0060.00318.16
8.2.30.0080.00018.16
8.2.20.0030.00618.12
8.2.10.0000.00818.17
8.2.00.0000.00719.29
8.1.280.0150.00025.92
8.1.270.0040.00423.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00719.19
8.1.230.0030.00817.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.23
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0080.00018.60
8.1.160.0040.00418.72
8.1.150.0050.00218.72
8.1.140.0000.00818.93
8.1.130.0000.00719.00
8.1.120.0030.00617.28
8.1.110.0070.00317.43
8.1.100.0070.00017.32
8.1.90.0000.00817.39
8.1.80.0040.00417.43
8.1.70.0050.00317.43
8.1.60.0070.00317.43
8.1.50.0000.00817.48
8.1.40.0040.00417.34
8.1.30.0000.00817.60
8.1.20.0040.00417.54
8.1.10.0000.00817.43
8.1.00.0050.00317.47
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.49
8.0.270.0070.00016.79
8.0.260.0000.00618.49
8.0.250.0000.00717.04
8.0.240.0030.00316.91
8.0.230.0000.00716.98
8.0.220.0030.00316.86
8.0.210.0000.00616.84
8.0.200.0020.00516.97
8.0.190.0050.00216.95
8.0.180.0040.00416.96
8.0.170.0070.00316.81
8.0.160.0030.00616.87
8.0.150.0030.00416.71
8.0.140.0070.00016.85
8.0.130.0060.00313.30
8.0.120.0040.00416.85
8.0.110.0000.00816.87
8.0.100.0020.00516.78
8.0.90.0000.00716.71
8.0.80.0100.00816.83
8.0.70.0030.00616.89
8.0.60.0040.00416.71
8.0.50.0040.00416.77
8.0.30.0100.00717.09
8.0.20.0060.01217.40
8.0.10.0020.00516.79
8.0.00.0080.01016.61
7.4.330.0000.00515.55
7.4.320.0030.00316.42
7.4.300.0060.00016.56
7.4.290.0000.00616.37
7.4.280.0000.00816.44
7.4.270.0040.00416.53
7.4.260.0000.00716.56
7.4.250.0040.00416.42
7.4.240.0000.00716.57
7.4.230.0030.00316.26
7.4.220.0030.00616.27
7.4.210.0100.00616.53
7.4.200.0050.00216.55
7.4.160.0050.01116.46
7.4.140.0150.00617.86
7.4.130.0070.01116.55
7.4.120.0130.00716.47
7.4.110.0110.00716.55
7.4.100.0000.01616.29
7.4.90.0090.00916.44
7.4.80.0090.01319.39
7.4.70.0100.00716.59
7.4.60.0070.01016.40
7.4.50.0080.00416.42
7.4.40.0130.00316.57
7.4.10.0070.01014.62
7.4.00.0080.00814.60
7.3.330.0050.00012.95
7.3.320.0000.00713.17
7.3.310.0070.00016.13
7.3.300.0000.00716.05
7.3.290.0030.00316.13
7.3.280.0120.00516.22
7.3.260.0120.00716.31
7.3.240.0090.01016.26
7.3.230.0080.00816.25
7.3.210.0070.01016.51
7.3.200.0190.00316.20
7.3.190.0160.00616.36
7.3.180.0030.01316.30
7.3.170.0130.00916.36
7.3.160.0130.00316.18
7.3.130.0100.00914.77
7.3.120.0030.01314.68
7.3.110.0030.01314.95
7.3.100.0040.01214.68
7.3.90.0090.00614.61
7.3.80.0040.00714.88
7.3.70.0000.01414.74
7.3.60.0070.01014.46
7.3.50.0000.00914.86
7.3.40.0040.01114.66
7.3.30.0070.00714.48
7.3.20.0100.00316.40
7.3.10.0060.00616.52
7.3.00.0070.00716.59
7.2.330.0060.01216.32
7.2.320.0120.00616.68
7.2.310.0030.01416.33
7.2.300.0110.00716.67
7.2.290.0050.01116.45
7.2.260.0070.01014.74
7.2.250.0090.00614.89
7.2.240.0070.01014.88
7.2.230.0040.01115.22
7.2.220.0090.00614.92
7.2.210.0030.01315.03
7.2.200.0030.01314.96
7.2.190.0060.00915.06
7.2.180.0070.01114.69
7.2.170.0030.00914.87
7.2.160.0030.00914.86
7.2.150.0000.01416.49
7.2.140.0120.00616.78
7.2.130.0040.00816.91
7.2.120.0000.01616.73
7.2.110.0030.01016.83
7.2.100.0080.00816.93
7.2.90.0210.00915.70
7.2.80.0100.00715.78
7.2.70.0110.00715.93
7.2.60.0610.00716.00
7.2.50.0290.00315.81
7.2.40.0210.01116.07
7.2.30.0750.01115.89
7.2.20.0470.01315.84
7.2.10.0380.00515.80
7.2.00.1250.00815.70
7.1.330.0070.00715.94
7.1.320.0060.00315.66
7.1.310.0120.00415.82
7.1.300.0130.00015.56
7.1.290.0070.00715.50
7.1.280.0120.00315.56
7.1.270.0030.00915.55
7.1.260.0040.00815.58
7.1.250.0090.00315.74
7.1.240.0060.00315.41
7.1.230.0140.00015.79
7.1.220.0030.00815.81
7.1.210.0450.00614.88
7.1.200.0110.00714.82
7.1.190.0240.00814.74
7.1.180.0070.00714.88
7.1.170.0090.00914.71
7.1.160.0920.00714.62
7.1.150.1080.00914.69
7.1.140.0720.00514.71
7.1.130.0300.01114.80
7.1.120.0150.01114.81
7.1.110.1220.00914.64
7.1.100.0070.00714.84
7.1.90.0850.00914.77
7.1.80.0560.01014.83
7.1.70.0840.00514.76
7.1.60.0700.00623.77
7.1.50.1270.00923.67
7.1.40.0940.01223.82
7.1.30.0980.01023.58
7.1.20.1010.00723.79
7.1.10.1010.00714.93
7.1.00.0830.00714.90
7.0.330.0060.00915.31
7.0.320.0080.00415.47
7.0.310.0060.00315.40
7.0.300.0000.01215.35
7.0.290.0030.00914.94
7.0.280.0070.00715.21
7.0.270.0090.00615.14
7.0.260.0000.00915.20
7.0.250.0050.00515.09
7.0.240.0040.00715.50
7.0.230.0090.00615.38
7.0.220.0000.00815.58
7.0.210.0030.00915.36
7.0.200.0030.01015.23
7.0.190.0070.00715.43
7.0.180.0030.00615.16
7.0.170.0090.00015.34
7.0.160.0040.00715.10
7.0.150.0030.00815.43
7.0.140.0000.00815.39
7.0.130.0060.00615.39
7.0.120.0090.00315.50
7.0.110.0030.01015.42
7.0.100.0060.00315.46
7.0.90.0000.01015.14
7.0.80.0060.00915.48
7.0.70.0030.01015.47
7.0.60.0060.00315.43
7.0.50.0030.01015.21
7.0.40.0060.00913.54
7.0.30.0040.00713.50
7.0.20.0030.01013.30
7.0.10.0030.00613.36
7.0.00.0060.00613.27
5.6.400.0060.00314.20
5.6.390.0100.00314.53
5.6.380.0070.00714.28
5.6.370.0070.00314.36
5.6.360.0000.01314.07
5.6.350.0030.00914.57
5.6.340.0070.00714.18
5.6.330.0070.00314.25
5.6.320.0070.00714.10
5.6.310.0120.00014.15
5.6.300.0000.01414.44
5.6.290.0030.01014.16
5.6.280.0120.00414.25
5.6.270.0030.01314.42
5.6.260.0030.01014.22
5.6.250.0050.00314.24
5.6.240.0000.01614.38
5.6.230.0030.00914.33
5.6.220.0040.00714.21
5.6.210.0030.00914.32
5.6.200.0060.00614.35
5.6.190.0040.00414.02
5.6.180.0070.00714.11
5.6.170.0000.01414.32
5.6.160.0060.00314.48
5.6.150.0100.00314.29
5.6.140.0030.00714.07
5.6.130.0040.01114.38
5.6.120.0090.00614.02
5.6.110.0050.00514.26
5.6.100.0080.00413.95
5.6.90.0040.01114.29
5.6.80.0100.00314.37
5.6.70.0030.00714.08
5.6.60.0060.00914.16
5.6.50.0030.01414.17
5.6.40.0030.00913.96
5.6.30.0000.01814.07
5.6.20.0000.01414.14
5.6.10.0070.00814.07
5.6.00.0070.00714.46

preferences:
78.42 ms | 401 KiB | 5 Q