3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = []; $utc_offset = preg_match( '/-?\d+/', 'UTC-01', $matches ) ? preg_replace( '/(?<=^|[-+])0*/', '', $matches[ 0 ] ) : 0; echo $utc_offset;

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.70.0130.00316.50
8.3.60.0120.00917.00
8.3.50.0120.00316.75
8.3.40.0180.00318.67
8.3.30.0060.00918.90
8.3.20.0040.00420.29
8.3.10.0030.00523.65
8.3.00.0040.00423.61
8.2.180.0030.01518.41
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0000.00920.57
8.2.120.0000.00726.35
8.2.110.0070.00421.02
8.2.100.0040.00818.09
8.2.90.0080.00018.11
8.2.80.0040.00418.16
8.2.70.0050.00317.93
8.2.60.0040.00418.05
8.2.50.0000.00718.22
8.2.40.0080.00022.49
8.2.30.0030.00621.10
8.2.20.0000.00718.09
8.2.10.0000.00818.21
8.2.00.0070.00018.11
8.1.280.0140.00025.92
8.1.270.0030.00623.70
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00023.83
8.1.230.0060.00621.04
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0090.00017.38
8.1.190.0050.00317.47
8.1.180.0000.00818.10
8.1.170.0030.00620.28
8.1.160.0040.00418.87
8.1.150.0110.00018.96
8.1.140.0000.00717.57
8.1.130.0030.00318.95
8.1.120.0070.00017.50
8.1.110.0050.00317.57
8.1.100.0040.00417.59
8.1.90.0040.00417.49
8.1.80.0070.00017.62
8.1.70.0000.00717.50
8.1.60.0040.00417.70
8.1.50.0050.00317.51
8.1.40.0080.00017.62
8.1.30.0030.00617.75
8.1.20.0060.00317.74
8.1.10.0000.00817.73
8.1.00.0000.00817.63
8.0.300.0040.00421.71
8.0.290.0070.00016.88
8.0.280.0050.00318.45
8.0.270.0050.00317.39
8.0.260.0000.00917.09
8.0.250.0070.00017.14
8.0.240.0030.00717.17
8.0.230.0000.00717.11
8.0.220.0030.00317.01
8.0.210.0030.00316.92
8.0.200.0070.00017.06
8.0.190.0060.00317.13
8.0.180.0060.00617.07
8.0.170.0040.00417.09
8.0.160.0050.00317.00
8.0.150.0040.00417.08
8.0.140.0000.00717.01
8.0.130.0040.00413.43
8.0.120.0000.00816.91
8.0.110.0050.00317.07
8.0.100.0040.00416.92
8.0.90.0040.00416.91
8.0.80.0040.01117.11
8.0.70.0040.00417.16
8.0.60.0040.00417.02
8.0.50.0000.00817.08
8.0.30.0130.00817.21
8.0.20.0100.00917.47
8.0.10.0000.00717.23
8.0.00.0060.01216.83
7.4.330.0050.00016.62
7.4.320.0030.00316.62
7.4.300.0000.00716.76
7.4.290.0050.00216.83
7.4.280.0080.00016.66
7.4.270.0000.00716.73
7.4.260.0000.00816.71
7.4.250.0040.00416.70
7.4.240.0070.00016.71
7.4.230.0030.00416.91
7.4.220.0090.00916.84
7.4.210.0100.00916.80
7.4.200.0040.00416.63
7.4.160.0120.00416.74
7.4.150.0150.00317.40
7.4.140.0100.01017.86
7.4.130.0070.01116.70
7.4.120.0120.00816.66
7.4.110.0090.00916.75
7.4.100.0060.01016.74
7.4.90.0140.00316.46
7.4.80.0070.01019.39
7.4.70.0150.00316.72
7.4.60.0110.00416.64
7.4.50.0030.01016.71
7.4.40.0120.00916.63
7.4.30.0070.01016.75
7.4.00.0060.01015.04
7.3.330.0030.00313.31
7.3.320.0000.00513.21
7.3.310.0080.00016.54
7.3.300.0030.00316.39
7.3.290.0070.00016.47
7.3.280.0090.01016.46
7.3.270.0100.00717.40
7.3.260.0090.01016.61
7.3.250.0090.01116.61
7.3.240.0120.00716.72
7.3.230.0100.00616.37
7.3.210.0130.00316.85
7.3.200.0060.01516.80
7.3.190.0120.00916.57
7.3.180.0070.01016.62
7.3.170.0100.00716.59
7.3.160.0040.01216.55
7.3.120.0070.00715.25
7.3.110.0000.01514.64
7.3.100.0130.00314.76
7.3.90.0040.00714.80
7.3.80.0100.00315.23
7.3.70.0030.01014.68
7.3.60.0060.00314.79
7.3.50.0030.01314.98
7.3.40.0090.00615.10
7.3.30.0000.01415.08
7.3.20.0090.00316.63
7.3.10.0050.00616.81
7.3.00.0030.01416.73
7.2.330.0130.00316.54
7.2.320.0090.01316.80
7.2.310.0030.01916.53
7.2.300.0180.00016.66
7.2.290.0050.01316.59
7.2.250.0040.01415.11
7.2.240.0060.01014.93
7.2.230.0080.00415.04
7.2.220.0030.01314.90
7.2.210.0100.00314.96
7.2.200.0090.00615.18
7.2.190.0100.00314.79
7.2.180.0070.01015.04
7.2.170.0070.00315.20
7.2.110.0160.00616.77
7.2.60.0080.00316.80
7.1.330.0130.00315.52
7.1.320.0080.00415.80
7.1.310.0060.00615.66
7.1.300.0030.01015.80
7.1.290.0040.01115.82
7.1.280.0060.00916.02
7.1.270.0030.00915.58
7.1.260.0070.00315.95
7.1.200.0080.00315.77
7.1.110.0100.01018.04
7.1.100.0060.00818.07
7.1.90.0120.00318.18
7.1.80.0030.01018.09
7.1.70.0070.00417.43
7.1.60.0180.01134.98
7.1.50.0190.00934.91
7.1.40.0130.01634.66
7.1.30.0200.01034.75
7.1.20.0230.00834.84
7.1.10.0030.01016.70
7.1.00.0030.01017.02
7.0.250.0110.00818.01
7.0.240.0060.00617.84
7.0.230.0030.01017.71
7.0.220.0030.01017.96
7.0.210.0040.00716.77
7.0.200.0030.01017.00
7.0.190.0100.00317.04
7.0.180.0110.00316.47
7.0.170.0110.00416.65
7.0.160.0050.00816.32
7.0.150.0030.01016.20
7.0.140.0060.00616.68
7.0.130.0060.00616.66
7.0.120.0060.00616.65
7.0.110.0030.01016.78
7.0.100.0000.01416.45
7.0.90.0030.01016.44
7.0.80.0000.01316.77
7.0.70.0040.00816.70
7.0.60.0070.00716.43
7.0.50.0030.00916.47
7.0.40.0050.00916.64
7.0.30.0030.00916.91
7.0.20.0070.00716.61
7.0.10.0080.00516.67
7.0.00.0030.01016.55

preferences:
63.95 ms | 401 KiB | 5 Q