3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = "\xff"; $s = gmp_export(unpack('c', $x)[1], 1); printf("In: %d, Out: %d\n", ord($x), ord($s));

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.0090.00918.56
8.3.50.0120.00822.03
8.3.40.0060.00918.77
8.3.30.0090.00618.48
8.3.20.0120.00620.41
8.3.10.0040.00420.39
8.3.00.0000.00820.77
8.2.180.0110.01116.61
8.2.170.0090.00622.96
8.2.160.0140.00320.56
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00319.36
8.2.120.0050.00326.35
8.2.110.0070.00421.06
8.2.100.0110.00020.65
8.2.90.0040.00419.76
8.2.80.0050.00319.39
8.2.70.0030.00617.93
8.2.60.0030.00617.91
8.2.50.0040.00418.10
8.2.40.0060.00320.41
8.2.30.0000.00719.53
8.2.20.0000.00817.62
8.2.10.0050.00318.14
8.2.00.0040.00418.15
8.1.280.0100.00625.92
8.1.270.0040.00423.95
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00022.23
8.1.230.0040.00819.11
8.1.220.0060.00317.74
8.1.210.0030.00818.77
8.1.200.0030.00617.22
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0090.00018.50
8.1.160.0000.00720.89
8.1.150.0000.00718.90
8.1.140.0000.00819.52
8.1.130.0000.00817.74
8.1.120.0000.00817.30
8.1.110.0000.00717.33
8.1.100.0080.00017.36
8.1.90.0020.00517.52
8.1.80.0040.00417.43
8.1.70.0000.00717.43
8.1.60.0000.00817.48
8.1.50.0040.00417.45
8.1.40.0080.00017.44
8.1.30.0040.00417.57
8.1.20.0000.00817.68
8.1.10.0040.00417.56
8.1.00.0050.00317.54
8.0.300.0000.00719.55
8.0.290.0060.00316.63
8.0.280.0080.00018.51
8.0.270.0030.00616.84
8.0.260.0030.00317.30
8.0.250.0070.00016.96
8.0.240.0040.00416.88
8.0.230.0040.00416.93
8.0.220.0070.00016.96
8.0.210.0030.00316.79
8.0.200.0030.00316.84
8.0.190.0060.00316.93
8.0.180.0040.00416.89
8.0.170.0070.00016.92
8.0.160.0040.00416.82
8.0.150.0040.00416.93
8.0.140.0070.00016.80
8.0.130.0030.00313.29
8.0.120.0000.01016.84
8.0.110.0050.00216.91
8.0.100.0000.00716.76
8.0.90.0000.00716.70
8.0.80.0130.00316.83
8.0.70.0080.00016.71
8.0.60.0050.00316.89
8.0.50.0000.00716.92
8.0.30.0100.00617.11
8.0.20.0070.01017.40
8.0.10.0000.00717.05
8.0.00.0110.01116.75
7.4.330.0000.00616.83
7.4.320.0040.00416.56
7.4.300.0060.00016.58
7.4.290.0070.00016.61
7.4.280.0070.00016.58
7.4.270.0070.00016.55
7.4.260.0020.00516.51
7.4.250.0030.00316.49
7.4.240.0070.00016.51
7.4.230.0040.00416.66
7.4.220.0000.02416.56
7.4.210.0090.01016.52
7.4.200.0000.00816.62
7.4.160.0090.00916.49
7.4.150.0130.00317.40
7.4.140.0070.01017.86
7.4.130.0100.01116.60
7.4.120.0080.00816.60
7.4.110.0130.00316.48
7.4.100.0000.01716.49
7.4.90.0070.01016.68
7.4.80.0190.00019.39
7.4.70.0060.01016.42
7.4.60.0130.00416.59
7.4.50.0030.01216.54
7.4.40.0030.01216.40
7.4.30.0070.01016.51
7.4.00.0080.01015.04
7.3.330.0050.00013.18
7.3.320.0000.00713.05
7.3.310.0030.00316.29
7.3.300.0030.00316.27
7.3.290.0040.00416.25
7.3.280.0100.00816.25
7.3.270.0110.00717.40
7.3.260.0130.00316.25
7.3.250.0130.00916.31
7.3.240.0120.00816.29
7.3.230.0100.00716.46
7.3.210.0100.00816.27
7.3.200.0080.00816.13
7.3.190.0090.00816.30
7.3.180.0090.00616.56
7.3.170.0090.00916.22
7.3.160.0040.01316.44
7.3.120.0030.01314.77
7.3.110.0030.01314.63
7.3.100.0060.00915.05
7.3.90.0060.01214.98
7.3.80.0040.01114.82
7.3.70.0110.00414.64
7.3.60.0060.00314.93
7.3.50.0030.00614.93
7.3.40.0030.00914.96
7.3.30.0030.00914.76
7.3.20.0100.00316.52
7.3.10.0040.01016.56
7.3.00.0050.01016.70
7.2.330.0070.01116.34
7.2.320.0150.00516.37
7.2.310.0180.00016.71
7.2.300.0040.01416.66
7.2.290.0160.00016.73
7.2.250.0090.00915.14
7.2.240.0140.00014.93
7.2.230.0070.00714.61
7.2.220.0070.01314.98
7.2.210.0000.01815.26
7.2.200.0040.01115.07
7.2.190.0060.00615.14
7.2.180.0000.01215.10
7.2.170.0000.01315.16
7.2.130.0070.01016.89
7.2.120.0070.01116.80
7.2.110.0090.00916.88
7.2.100.0070.00717.05
7.2.90.0070.00716.93
7.2.80.0040.01416.98
7.2.70.0030.01316.72
7.2.60.0060.00916.79
7.2.50.0120.00416.92
7.2.40.0030.01417.13
7.2.30.0120.00317.12
7.2.20.0040.01216.75
7.2.10.0040.00716.84
7.2.00.0030.01318.04
7.1.330.0070.00716.02
7.1.320.0060.00615.76
7.1.310.0110.00315.77
7.1.300.0000.00915.88
7.1.290.0060.00615.88
7.1.280.0040.00715.76
7.1.270.0030.00815.85
7.1.260.0000.01415.64
7.1.250.0030.00615.88
7.1.200.0000.01215.86
7.1.100.0000.01218.43
7.1.70.0030.00617.09
7.1.60.0110.01419.19
7.1.50.0100.01317.02
7.1.00.0130.06722.49
7.0.200.0030.00616.70
7.0.60.0230.07319.86
7.0.50.0030.05017.89
7.0.40.0070.04720.14
7.0.30.0300.05020.13
7.0.20.0230.05320.11
7.0.10.0070.05720.27
7.0.00.0070.07720.39
5.6.280.0000.07020.95
5.6.210.0000.04320.46
5.6.200.0070.06718.22
5.6.190.0100.07020.51
5.6.180.0130.04320.52
5.6.170.0200.05720.65
5.6.160.0100.08320.52
5.6.150.0030.06718.24
5.6.140.0030.08018.20
5.6.130.0170.07718.32
5.6.120.0070.08021.16
5.6.110.0070.03721.08
5.6.100.0200.06321.17
5.6.90.0100.08321.16
5.6.80.0070.04320.54
5.5.350.4230.03720.40
5.5.340.0000.04317.92
5.5.330.0030.08320.20
5.5.320.0370.06320.25
5.5.310.0170.03720.29
5.5.300.0030.05317.98
5.5.290.0070.08717.95
5.5.280.0130.07720.77
5.5.270.0070.08320.94
5.5.260.0100.08020.83
5.5.250.0070.07020.68
5.5.240.0170.05720.19

preferences:
61.59 ms | 401 KiB | 5 Q