3v4l.org

run code in 300+ PHP versions simultaneously
<?php $command = 1; $chksum = 2; $session_id = 3; $reply_id = 4; $command_string = 'test'; $buf = pack('SSSS', $command, $chksum, $session_id, $reply_id).$command_string; $buf = unpack('C'.(8+strlen($command_string)).'c', $buf); var_dump($buf);

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.0110.01116.50
8.3.50.0070.01019.06
8.3.40.0140.00718.63
8.3.30.0100.00718.46
8.3.20.0000.00820.61
8.3.10.0040.00423.48
8.3.00.0040.00422.58
8.2.180.0180.00316.38
8.2.170.0140.00022.96
8.2.160.0110.00320.44
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0050.00320.68
8.2.110.0030.00720.39
8.2.100.0060.00619.54
8.2.90.0000.00817.48
8.2.80.0000.00818.67
8.2.70.0070.00317.38
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0000.00718.22
8.2.30.0000.00717.97
8.2.20.0040.00418.09
8.2.10.0000.00719.24
8.2.00.0040.00418.10
8.1.280.0150.00625.92
8.1.270.0050.00322.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00720.64
8.1.230.0090.00317.66
8.1.220.0030.00517.78
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00718.80
8.1.150.0040.00418.86
8.1.140.0040.00418.95
8.1.130.0000.00720.28
8.1.120.0050.00317.47
8.1.110.0000.00817.34
8.1.100.0040.00417.29
8.1.90.0040.00417.38
8.1.80.0000.00717.30
8.1.70.0070.00017.33
8.1.60.0030.00517.55
8.1.50.0000.00717.49
8.1.40.0000.00817.41
8.1.30.0060.00617.68
8.1.20.0060.00317.48
8.1.10.0030.00517.38
8.1.00.0040.00417.41
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0030.00618.47
8.0.270.0080.00017.24
8.0.260.0030.00318.29
8.0.250.0000.00816.99
8.0.240.0030.00316.85
8.0.230.0070.00016.92
8.0.220.0070.00016.81
8.0.210.0070.00316.89
8.0.200.0030.00316.91
8.0.190.0000.00816.93
8.0.180.0070.00016.91
8.0.170.0100.00016.80
8.0.160.0040.00416.89
8.0.150.0040.00416.79
8.0.140.0040.00416.88
8.0.130.0000.00613.36
8.0.120.0050.00216.73
8.0.110.0070.00016.87
8.0.100.0000.00716.70
8.0.90.0070.00016.75
8.0.80.0040.01116.93
8.0.70.0000.00716.75
8.0.60.0070.00016.85
8.0.50.0040.00416.88
8.0.30.0070.01017.04
8.0.20.0110.01017.24
8.0.10.0000.00816.91
8.0.00.0120.00816.80
7.4.330.0000.00516.74
7.4.320.0040.00416.44
7.4.300.0030.00316.39
7.4.290.0040.00416.58
7.4.280.0080.00016.39
7.4.270.0070.00016.59
7.4.260.0030.00516.46
7.4.250.0030.00316.59
7.4.240.0000.00816.51
7.4.230.0030.00316.55
7.4.220.0000.00716.59
7.4.210.0080.00716.52
7.4.200.0070.00016.51
7.4.160.0110.00516.61
7.4.130.0070.01016.46
7.4.120.0060.01216.46
7.4.110.0040.01216.45
7.4.100.0400.02616.65
7.4.90.0110.00716.29
7.4.80.0160.00619.39
7.4.70.0160.00316.59
7.4.60.0090.00616.35
7.4.50.0070.00716.19
7.4.40.0060.01116.56
7.4.00.0080.00815.02
7.3.330.0020.00213.15
7.3.320.0060.00013.29
7.3.310.0030.00316.20
7.3.300.0030.00316.32
7.3.290.0030.00316.36
7.3.280.0070.00916.29
7.3.260.0120.00716.53
7.3.240.0110.00616.46
7.3.230.0060.01216.53
7.3.210.0030.01616.27
7.3.200.0070.01016.49
7.3.190.0130.00316.28
7.3.180.0110.00616.43
7.3.170.0060.00916.37
7.3.160.0110.00716.41
7.3.120.0130.00015.14
7.3.110.0030.01314.86
7.3.100.0090.00915.06
7.3.90.0040.01115.11
7.3.80.0070.01414.67
7.3.70.0070.00714.80
7.3.60.0120.00014.87
7.3.50.0070.00714.45
7.3.40.0110.00514.74
7.3.30.0050.00814.87
7.3.20.0090.00616.57
7.3.10.0050.00916.55
7.3.00.0060.00516.56
7.2.330.0030.01416.72
7.2.320.0060.01216.79
7.2.310.0140.00316.50
7.2.300.0080.00816.58
7.2.290.0100.00716.50
7.2.250.0090.00415.11
7.2.240.0030.01315.10
7.2.230.0060.00915.16
7.2.220.0030.01014.64
7.2.210.0120.00614.87
7.2.200.0110.00415.11
7.2.190.0060.00315.01
7.2.180.0060.01015.00
7.2.170.0070.00715.02
7.2.160.0100.00315.04
7.2.150.0060.00916.79
7.2.140.0100.00416.98
7.2.130.0090.00616.96
7.2.120.0040.01116.95
7.2.110.0070.00716.88
7.2.100.0060.01016.87
7.2.90.0050.00816.97
7.2.80.0070.00716.92
7.2.70.0050.00817.02
7.2.60.0060.00916.83
7.2.50.0070.00816.87
7.2.40.0080.00816.89
7.2.30.0100.00516.83
7.2.20.0070.00817.03
7.2.10.0040.01016.74
7.2.00.0080.00516.98
7.1.330.0040.01115.84
7.1.320.0000.01415.87
7.1.310.0170.00315.78
7.1.300.0000.01215.54
7.1.290.0070.00715.66
7.1.280.0040.01015.55
7.1.270.0020.01415.71
7.1.260.0070.00615.88
7.1.250.0090.00415.75
7.1.240.0000.01215.71
7.1.230.0060.00615.68
7.1.220.0070.00715.84
7.1.210.0090.00615.55
7.1.200.0060.00315.73
7.1.190.0060.00615.72
7.1.180.0060.00615.64
7.1.170.0070.00715.73
7.1.160.0040.01115.90
7.1.150.0000.01315.63
7.1.140.0090.00615.70
7.1.130.0070.00715.80
7.1.120.0170.00015.70
7.1.110.0080.00815.58
7.1.100.0000.00915.91
7.1.90.0040.01115.85
7.1.80.0060.00915.69
7.1.70.0070.00715.73
7.1.60.0030.01115.61
7.1.50.0120.00315.51
7.1.40.0100.00715.31
7.1.30.0030.00615.69
7.1.20.0070.00715.48
7.1.10.0040.00815.72
7.1.00.0050.00515.76

preferences:
59.25 ms | 401 KiB | 5 Q