3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_replace('0x', '', ' 0x54, 0x68, 0x65, 0x20, 0x64, 0x68, 0x6f, 0x6c, 0x65, 0x20, 0x28, 0x70, 0x72, 0x6f, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x64, 0x20, 0x22, 0x64, 0x6f, 0x6c, 0x65, 0x22, 0x29, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6c, 0x73, 0x6f, 0x20, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x20, 0x61, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x41, 0x73, 0x69, 0x61, 0x74, 0x69, 0x63, 0x20, 0x77, 0x69, 0x6c, 0x64, 0x20, 0x64, 0x6f, 0x67, 0x2c, 0x20, 0x72, 0x65, 0x64, 0x20, 0x64, 0x6f, 0x67, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x77, 0x68, 0x69, 0x73, 0x74, 0x6c, 0x69, 0x6e, 0x67, 0x20, 0x64, 0x6f, 0x67, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x47, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x20, 0x73, 0x68, 0x65, 0x70, 0x68, 0x65, 0x72, 0x64, 0x20, 0x62, 0x75, 0x74, 0x20, 0x6c, 0x6f, 0x6f, 0x6b, 0x73, 0x20, 0x6d, 0x6f, 0x72, 0x65, 0x20, 0x6c, 0x69, 0x6b, 0x65, 0x20, 0x61, 0x20, 0x6c, 0x6f, 0x6e, 0x67, 0x2d, 0x6c, 0x65, 0x67, 0x67, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x78, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x79, 0x20, 0x65, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x6a, 0x75, 0x6d, 0x70, 0x65, 0x72, 0x20, 0x69, 0x73, 0x20, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x77, 0x6f, 0x6c, 0x76, 0x65, 0x73, 0x2c, 0x20, 0x63, 0x6f, 0x79, 0x6f, 0x74, 0x65, 0x73, 0x2c, 0x20, 0x6a, 0x61, 0x63, 0x6b, 0x61, 0x6c, 0x73, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x66, 0x6f, 0x78, 0x65, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x61, 0x78, 0x6f, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x20, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x20, 0x43, 0x61, 0x6e, 0x69, 0x64, 0x61, 0x65, 0x2e,'); $x = preg_replace('/[^0-9a-f]/', '', $x); echo hex2bin($x);

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.130.0100.00018.60
8.3.120.0040.00418.58
8.3.110.0160.00316.82
8.3.100.0040.00416.64
8.3.90.0070.00326.77
8.3.80.0090.00018.56
8.3.70.0090.00916.75
8.3.60.0140.00318.30
8.3.50.0110.00624.57
8.3.40.0120.00318.84
8.3.30.0070.00718.82
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.250.0040.01116.70
8.2.240.0060.00319.25
8.2.230.0150.00920.94
8.2.220.0060.00337.54
8.2.210.0030.00626.77
8.2.200.0060.00317.00
8.2.190.0120.00316.63
8.2.180.0070.00725.92
8.2.170.0110.00418.80
8.2.160.0060.00922.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00721.04
8.2.110.0070.01021.23
8.2.100.0120.00519.29
8.2.90.0130.00719.08
8.2.80.0120.00619.02
8.2.70.0130.00518.93
8.2.60.0140.00519.00
8.2.50.0150.00518.95
8.2.40.0120.00518.96
8.2.30.0130.00518.96
8.2.20.0100.00618.98
8.2.10.0120.00618.90
8.2.00.0120.00618.90
8.1.300.0090.00016.53
8.1.290.0060.00330.84
8.1.280.0060.00925.92
8.1.270.0090.00023.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0010.00823.93
8.1.230.0050.00620.65
8.1.220.0120.00518.83
8.1.210.0110.00618.90
8.1.200.0120.00518.73
8.1.190.0130.00418.69
8.1.180.0120.00518.73
8.1.170.0120.00518.76
8.1.160.0120.00618.78
8.1.150.0120.00518.75
8.1.140.0120.00518.76
8.1.130.0120.00518.71
8.1.120.0120.00518.71
8.1.110.0120.00618.67
8.1.100.0120.00518.71
8.1.90.0100.00618.65
8.1.80.0110.00618.64
8.1.70.0100.00618.61
8.1.60.0120.00618.58
8.1.50.0120.00618.57
8.1.40.0120.00618.58
8.1.30.0140.00518.59
8.1.20.0130.00518.66
8.1.10.0120.00618.57
8.1.00.0130.00518.63
8.0.300.0070.00519.93
8.0.290.0120.00518.64
8.0.280.0130.00418.71
8.0.270.0120.00518.67
8.0.260.0130.00418.65
8.0.250.0110.00518.65
8.0.240.0120.00518.62
8.0.230.0130.00418.58
8.0.220.0120.00518.48
8.0.210.0110.00518.49
8.0.200.0130.00418.54
8.0.190.0120.00518.43
8.0.180.0130.00418.40
8.0.170.0110.00618.40
8.0.160.0110.00618.40
8.0.150.0110.00618.38
8.0.140.0110.00618.40
8.0.130.0120.00518.30
8.0.120.0120.00518.26
8.0.110.0110.00518.27
8.0.100.0120.00518.25
8.0.90.0110.00418.11
8.0.80.0110.00518.13
8.0.70.0120.00418.15
8.0.60.0120.00418.09
8.0.50.0110.00518.10
8.0.30.0110.00518.02
8.0.20.0100.00618.04
8.0.10.0110.00518.10
8.0.00.0090.00618.10
7.4.330.0100.00318.37
7.4.320.0120.00518.55
7.4.300.0110.00618.41
7.4.290.0110.00518.33
7.4.280.0120.00518.28
7.4.270.0120.00518.27
7.4.260.0110.00618.22
7.4.250.0120.00518.14
7.4.240.0130.00418.15
7.4.230.0120.00418.15
7.4.220.0110.00517.98
7.4.210.0110.00417.97
7.4.200.0100.00517.95
7.4.190.0100.00518.01
7.4.180.0120.00418.00
7.4.160.0110.00517.94
7.4.150.0110.00517.93
7.4.140.0110.00517.92
7.4.130.0110.00417.86
7.4.120.0110.00517.85
7.4.110.0110.00517.85
7.4.100.0110.00617.73
7.4.90.0100.00617.71
7.4.80.0110.00617.64
7.4.70.0110.00617.67
7.4.60.0120.00517.66
7.4.50.0110.00617.62
7.4.40.0100.00617.62
7.4.30.0110.00617.64
7.4.20.0110.00617.61
7.4.10.0100.00617.63
7.4.00.0100.00717.70
7.3.330.0110.00518.23
7.3.320.0100.00617.96
7.3.310.0110.00518.04
7.3.300.0110.00418.05
7.3.290.0120.00417.84
7.3.280.0100.00517.83
7.3.270.0110.00517.78
7.3.260.0110.00517.74
7.3.250.0100.00617.77
7.3.240.0120.00517.71
7.3.230.0110.00517.66
7.3.220.0110.00617.56
7.3.210.0110.00617.53
7.3.200.0110.00617.52
7.3.190.0130.00517.50
7.3.180.0110.00717.50
7.3.170.0120.00617.49
7.3.160.0120.00617.50
7.3.150.0110.00617.52
7.3.140.0120.00617.52
7.3.130.0120.00617.51
7.3.120.0110.00517.49
7.3.110.0120.00517.47
7.3.100.0120.00617.51
7.3.90.0110.00717.59
7.3.80.0120.00517.52
7.3.70.0110.00617.53
7.3.60.0120.00617.56
7.3.50.0120.00617.58
7.3.40.0120.00617.56
7.3.30.0110.00617.54
7.3.20.0140.00517.90
7.3.10.0130.00617.85
7.3.00.0120.00617.87
7.2.340.0120.00517.84
7.2.330.0110.00617.67
7.2.320.0120.00617.63
7.2.310.0120.00717.64
7.2.300.0120.00717.63
7.2.290.0120.00717.65
7.2.280.0120.00617.64
7.2.270.0120.00617.65
7.2.260.0130.00617.65
7.2.250.0110.00717.62
7.2.240.0120.00617.64
7.2.230.0110.00717.67
7.2.220.0110.00717.64
7.2.210.0120.00617.65
7.2.200.0120.00617.66
7.2.190.0130.00517.65
7.2.180.0120.00617.66
7.2.170.0110.00617.65
7.2.160.0100.00817.67
7.2.150.0140.00718.05
7.2.140.0140.00618.09
7.2.130.0140.00618.10
7.2.120.0140.00718.08
7.2.110.0140.00618.08
7.2.100.0130.00718.13
7.2.90.0130.00718.14
7.2.80.0150.00618.12
7.2.70.0120.00718.16
7.2.60.0130.00618.14
7.2.50.0130.00718.12
7.2.40.0160.00618.13
7.2.30.0130.00718.13
7.2.20.0140.00618.09
7.2.10.0140.00718.07
7.2.00.0130.00618.12

preferences:
28.12 ms | 403 KiB | 5 Q