3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = []; $utc_offset = preg_match( '/-?\d+/', 'UTC', $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.0070.01016.63
8.3.60.0100.01316.50
8.3.50.0110.00816.72
8.3.40.0120.00318.89
8.3.30.0070.00718.80
8.3.20.0070.00020.20
8.3.10.0050.00323.54
8.3.00.0080.00023.64
8.2.190.0110.00416.63
8.2.180.0150.00418.06
8.2.170.0070.00722.96
8.2.160.0030.01020.53
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00420.58
8.2.120.0070.00026.35
8.2.110.0000.00919.39
8.2.100.0120.00018.03
8.2.90.0060.00319.18
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0030.00617.92
8.2.50.0040.00418.16
8.2.40.0000.00822.18
8.2.30.0000.00921.15
8.2.20.0000.00717.99
8.2.10.0000.00718.14
8.2.00.0060.00318.14
8.1.280.0150.00025.92
8.1.270.0080.00023.96
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00722.71
8.1.230.0060.00617.63
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0060.00317.39
8.1.180.0050.00318.10
8.1.170.0030.00520.50
8.1.160.0040.00418.90
8.1.150.0000.00818.85
8.1.140.0000.00717.67
8.1.130.0000.00718.83
8.1.120.0040.00417.56
8.1.110.0040.00417.59
8.1.100.0030.00317.49
8.1.90.0040.00417.43
8.1.80.0000.00817.46
8.1.70.0000.00717.53
8.1.60.0060.00317.68
8.1.50.0030.00617.62
8.1.40.0040.00417.57
8.1.30.0070.00017.77
8.1.20.0040.00417.77
8.1.10.0050.00317.54
8.1.00.0040.00417.62
8.0.300.0000.00718.80
8.0.290.0040.00416.75
8.0.280.0000.00818.41
8.0.270.0000.00717.21
8.0.260.0030.00616.93
8.0.250.0030.00317.11
8.0.240.0000.01116.95
8.0.230.0000.00717.02
8.0.220.0000.00716.89
8.0.210.0040.00417.02
8.0.200.0000.00817.05
8.0.190.0000.00817.01
8.0.180.0050.00516.89
8.0.170.0000.00816.92
8.0.160.0030.00616.94
8.0.150.0050.00216.80
8.0.140.0000.00716.95
8.0.130.0050.00313.40
8.0.120.0080.00016.95
8.0.110.0040.00416.90
8.0.100.0070.00017.00
8.0.90.0040.00417.01
8.0.80.0030.01116.97
8.0.70.0050.00316.96
8.0.60.0040.00417.04
8.0.50.0080.00016.86
8.0.30.0120.00917.24
8.0.20.0110.00917.40
8.0.10.0040.00416.98
8.0.00.0090.00817.06
7.4.330.0020.00216.59
7.4.320.0050.00316.75
7.4.300.0030.00316.64
7.4.290.0000.00716.78
7.4.280.0000.00816.67
7.4.270.0030.00316.84
7.4.260.0030.00316.74
7.4.250.0030.00516.69
7.4.240.0030.00316.65
7.4.230.0040.00416.80
7.4.220.0110.00716.68
7.4.210.0080.01016.63
7.4.200.0050.00216.83
7.4.160.0100.00716.85
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0060.01216.59
7.4.120.0100.00916.65
7.4.110.0070.01116.77
7.4.100.0130.00316.70
7.4.90.0100.00616.54
7.4.80.0130.00519.39
7.4.70.0060.01516.59
7.4.60.0060.00916.52
7.4.50.0030.01016.57
7.4.40.0100.01016.47
7.4.30.0100.01016.59
7.4.10.0110.00614.97
7.4.00.0050.01114.98
7.3.330.0000.00613.07
7.3.320.0050.00013.04
7.3.310.0070.00016.46
7.3.300.0070.00016.34
7.3.290.0090.00016.39
7.3.280.0080.00716.37
7.3.270.0110.00717.40
7.3.260.0090.00816.46
7.3.250.0060.01116.34
7.3.240.0110.00516.38
7.3.230.0100.00716.38
7.3.210.0060.01216.39
7.3.200.0140.00316.34
7.3.190.0120.00816.30
7.3.180.0060.01316.70
7.3.170.0070.01316.41
7.3.160.0120.00616.73
7.3.130.0000.01815.22
7.3.120.0100.00714.88
7.3.110.0030.00915.15
7.3.100.0030.01014.89
7.3.90.0070.01115.08
7.3.80.0030.01314.91
7.3.70.0090.00914.74
7.3.60.0070.00714.97
7.3.50.0090.00314.99
7.3.40.0090.00614.86
7.3.30.0040.00914.77
7.3.20.0030.01016.84
7.3.10.0070.01016.68
7.3.00.0140.00316.86
7.2.330.0040.01816.74
7.2.320.0060.01216.60
7.2.310.0100.01316.59
7.2.300.0070.01016.50
7.2.290.0030.01716.49
7.2.260.0090.00915.01
7.2.250.0030.01714.82
7.2.240.0060.00915.02
7.2.230.0090.00615.00
7.2.220.0050.00515.16
7.2.210.0110.00415.12
7.2.200.0070.00714.94
7.2.190.0060.00915.05
7.2.180.0120.00314.75
7.2.170.0090.00615.10
7.2.160.0030.01015.04
7.2.150.0070.01117.12
7.2.140.0100.00316.89
7.2.130.0090.00616.93
7.2.120.0040.00817.03
7.2.110.0030.01716.64
7.2.100.0090.00916.76
7.2.90.0100.00317.09
7.2.80.0070.00816.82
7.2.70.0050.00516.88
7.2.60.0080.00617.02
7.2.50.0140.00316.86
7.2.40.0050.00916.83
7.2.30.0030.01017.03
7.2.20.0030.00916.89
7.2.10.0120.00316.78
7.2.00.0030.01317.12
7.1.330.0040.01115.68
7.1.320.0060.00615.69
7.1.310.0080.01116.07
7.1.300.0000.01015.62
7.1.290.0000.01015.84
7.1.280.0000.01715.89
7.1.270.0120.00016.00
7.1.260.0060.01215.76
7.1.250.0030.00915.89
7.1.240.0000.01416.11
7.1.230.0120.00416.05
7.1.220.0030.01315.86
7.1.210.0000.01315.85
7.1.200.0090.00515.82
7.1.190.0080.00415.88
7.1.180.0080.00415.90
7.1.170.0060.00915.90
7.1.160.0030.01015.48
7.1.150.0040.01115.81
7.1.140.0070.00315.87
7.1.130.0030.00615.80
7.1.120.0030.00715.64
7.1.110.0050.00617.17
7.1.100.0050.00917.19
7.1.90.0090.00417.29
7.1.80.0060.00717.20
7.1.70.0080.00516.43
7.1.60.0130.00625.51
7.1.50.0120.00925.51
7.1.40.0110.00825.26
7.1.30.0140.00825.13
7.1.20.0110.00825.24
7.1.10.0080.00616.24
7.1.00.0050.00716.25
7.0.330.0070.00715.55
7.0.320.0060.00915.57
7.0.310.0000.01315.39
7.0.300.0110.00015.46
7.0.290.0000.01215.25
7.0.280.0030.01015.30
7.0.270.0090.00615.50
7.0.260.0030.00915.68
7.0.250.0060.00616.48
7.0.240.0030.01216.69
7.0.230.0030.00816.77
7.0.220.0100.00316.70
7.0.210.0060.00716.27
7.0.200.0080.00616.18
7.0.190.0100.00316.23
7.0.180.0050.00916.04
7.0.170.0070.00615.96
7.0.160.0040.00915.78
7.0.150.0000.01215.86
7.0.140.0060.00815.79
7.0.130.0030.01215.99
7.0.120.0090.00515.94
7.0.110.0030.00916.13
7.0.100.0060.00815.88
7.0.90.0050.00816.03
7.0.80.0040.00916.12
7.0.70.0020.01115.89
7.0.60.0080.00615.87
7.0.50.0030.01115.98
7.0.40.0070.00815.18
7.0.30.0050.00815.08
7.0.20.0050.00815.15
7.0.10.0070.00814.97
7.0.00.0070.00615.14
5.6.400.0060.00614.50
5.6.390.0030.01214.55
5.6.380.0060.00614.36
5.6.370.0040.01514.68
5.6.360.0080.00314.30
5.6.350.0030.00914.31
5.6.340.0000.00814.69
5.6.330.0030.00614.22
5.6.320.0040.00714.30
5.6.310.0040.01114.13
5.6.300.0080.00414.32
5.6.290.0060.00814.44
5.6.280.0000.01314.51
5.6.270.0070.00314.27
5.6.260.0060.00914.06
5.6.250.0030.00614.44
5.6.240.0000.00914.52
5.6.230.0000.01214.33
5.6.220.0140.00014.64
5.6.210.0050.00814.38
5.6.200.0070.00714.52
5.6.190.0040.01114.32
5.6.180.0030.00514.29
5.6.170.0030.01314.33
5.6.160.0050.01014.41
5.6.150.0060.00914.48
5.6.140.0100.00314.23
5.6.130.0000.01014.48
5.6.120.0000.01014.52
5.6.110.0080.00314.24
5.6.100.0080.00414.55
5.6.90.0080.00514.36
5.6.80.0100.00714.46
5.6.70.0000.01314.20
5.6.60.0030.01114.28
5.6.50.0030.00814.66
5.6.40.0100.00314.23
5.6.30.0040.00714.13
5.6.20.0000.01414.12
5.6.10.0000.01114.14
5.6.00.0100.00514.22

preferences:
18.61 ms | 401 KiB | 5 Q