3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cpf = "95670785134"; echo substr($cpf, 0, 3) . '.' . substr($cpf, 3, 3) . '.' . substr($cpf,6,3) . '-' . substr($cpf,-2);

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.0090.00618.19
8.3.60.0090.00618.56
8.3.50.0210.00622.05
8.3.40.0100.00718.71
8.3.30.0090.00518.93
8.3.20.0040.00420.14
8.3.10.0000.00822.10
8.3.00.0050.00322.57
8.2.190.0110.00316.58
8.2.180.0120.00316.50
8.2.170.0070.00722.96
8.2.160.0030.01020.77
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0080.00017.63
8.2.110.0050.00522.14
8.2.100.0050.01017.84
8.2.90.0070.00019.05
8.2.80.0000.00917.97
8.2.70.0060.00317.36
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0090.00018.09
8.2.30.0040.00418.01
8.2.20.0050.00217.74
8.2.10.0050.00217.48
8.2.00.0050.00317.63
8.1.280.0090.00625.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0040.00423.83
8.1.230.0080.00319.09
8.1.220.0070.00017.74
8.1.210.0080.00018.77
8.1.200.0050.00517.35
8.1.190.0040.00417.41
8.1.180.0030.00518.10
8.1.170.0060.00318.59
8.1.160.0050.00222.00
8.1.150.0040.00418.63
8.1.140.0040.00417.35
8.1.130.0000.00717.68
8.1.120.0030.00617.34
8.1.110.0070.00017.45
8.1.100.0000.00717.28
8.1.90.0000.00917.38
8.1.80.0030.00317.32
8.1.70.0040.00417.41
8.1.60.0050.00317.40
8.1.50.0060.00317.45
8.1.40.0000.00717.48
8.1.30.0040.00417.57
8.1.20.0040.00417.68
8.1.10.0070.00017.41
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0060.00317.30
8.0.280.0030.00518.37
8.0.270.0040.00417.24
8.0.260.0000.00616.74
8.0.250.0000.00716.98
8.0.240.0000.01016.92
8.0.230.0070.00016.96
8.0.220.0030.00316.89
8.0.210.0030.00316.77
8.0.200.0000.00816.75
8.0.190.0050.00316.95
8.0.180.0040.00416.96
8.0.170.0050.00216.91
8.0.160.0070.00016.81
8.0.150.0000.00716.94
8.0.140.0000.00716.74
8.0.130.0030.00313.29
8.0.120.0090.00016.82
8.0.110.0080.00016.91
8.0.100.0070.00016.77
8.0.90.0040.00416.74
8.0.80.0070.00716.92
8.0.70.0070.00016.94
8.0.60.0000.00716.74
8.0.50.0040.00416.74
8.0.30.0140.00617.08
8.0.20.0080.01017.40
8.0.10.0080.00016.85
8.0.00.0090.00916.69
7.4.330.0060.00015.03
7.4.320.0000.00616.38
7.4.300.0030.00316.39
7.4.290.0030.00316.61
7.4.280.0020.00516.41
7.4.270.0000.00816.63
7.4.260.0000.00716.45
7.4.250.0080.00016.54
7.4.240.0020.00516.44
7.4.230.0030.00316.62
7.4.220.0070.01116.60
7.4.210.0090.01016.49
7.4.200.0070.00016.50
7.4.190.0070.00016.48
7.4.160.0030.01316.42
7.4.150.0150.00317.40
7.4.140.0080.01017.86
7.4.130.0070.01116.37
7.4.120.0060.01216.39
7.4.110.0060.01016.35
7.4.100.0140.00316.45
7.4.90.0060.01016.28
7.4.80.0120.00919.39
7.4.70.0110.00516.29
7.4.60.0080.00816.51
7.4.50.0000.00816.34
7.4.40.0060.00922.77
7.4.30.0070.01016.39
7.4.00.0030.01215.03
7.3.330.0030.00313.17
7.3.320.0050.00012.91
7.3.310.0060.00016.04
7.3.300.0000.00716.23
7.3.290.0070.00716.18
7.3.280.0060.01016.14
7.3.270.0110.01117.40
7.3.260.0130.00316.14
7.3.250.0130.00616.37
7.3.240.0070.01016.36
7.3.230.0090.00916.39
7.3.210.0090.01116.21
7.3.200.0130.00319.39
7.3.190.0100.00716.22
7.3.180.0070.01016.29
7.3.170.0030.01316.53
7.3.160.0090.00616.63
7.3.120.0090.00514.63
7.3.110.0070.01014.96
7.3.100.0000.01414.71
7.3.90.0060.01214.53
7.3.80.0090.00614.81
7.3.70.0090.00914.75
7.3.60.0110.00014.46
7.3.50.0000.01414.66
7.3.40.0030.01014.65
7.3.30.0030.00614.45
7.3.20.0000.00916.38
7.3.10.0060.01016.76
7.3.00.0090.00616.68
7.2.330.0100.01016.61
7.2.320.0130.01016.59
7.2.310.0100.00716.59
7.2.300.0060.00916.47
7.2.290.0100.00616.65
7.2.250.0070.01014.87
7.2.240.0130.00714.74
7.2.230.0040.01114.92
7.2.220.0080.00515.12
7.2.210.0060.01315.09
7.2.200.0070.00714.84
7.2.190.0080.00314.89
7.2.180.0120.00414.83
7.2.170.0140.00314.90
7.2.00.0190.00319.48
7.1.330.0030.01015.79
7.1.320.0060.00315.47
7.1.310.0060.00615.88
7.1.300.0060.00615.74
7.1.290.0060.00915.46
7.1.280.0030.00615.73
7.1.270.0110.00015.89
7.1.260.0070.00315.78
7.1.100.0000.01018.08
7.1.70.0000.00816.81
7.1.60.0160.00919.82
7.1.50.0080.00316.66
7.1.00.0030.07322.36
7.0.200.0070.00316.73
7.0.140.0070.07022.21
7.0.60.0130.06719.82
7.0.50.0000.09717.80
7.0.40.0130.05720.20
7.0.30.0230.06720.13
7.0.20.0200.04320.22
7.0.10.0230.06020.09
7.0.00.0130.05320.16
5.6.280.0130.06320.84
5.6.210.0100.08320.53
5.6.200.0100.07718.11
5.6.190.0070.06320.36
5.6.180.4130.04020.66
5.6.170.0230.07720.71
5.6.160.0030.08720.55
5.6.150.0070.08018.16
5.6.140.0000.04018.21
5.6.130.0070.05318.11
5.6.120.0000.04720.98
5.6.110.0070.07021.08
5.6.100.0130.07320.99
5.6.90.0130.08021.01
5.6.80.0100.07720.52
5.5.350.0000.08720.38
5.5.340.0030.04717.92
5.5.330.0070.05020.25
5.5.320.0230.03720.25
5.5.310.0270.06720.50
5.5.300.0030.05317.91
5.5.290.0100.05718.02
5.5.280.0070.08020.86
5.5.270.0100.03720.75
5.5.260.0030.04720.88
5.5.250.0000.04320.55
5.5.240.0070.08720.22
5.4.450.0270.04319.39
5.4.440.0200.06319.39
5.4.430.0270.05019.27
5.4.420.0230.05019.41
5.4.410.0200.07719.08
5.4.400.0230.07718.91
5.4.390.0270.03719.25
5.4.380.0270.07018.93
5.4.370.0170.08019.06
5.4.360.0330.07318.95
5.4.350.0200.05319.09
5.4.340.0170.04718.88
5.4.320.0230.06019.08
5.4.310.0200.04319.25
5.4.300.0270.05018.80
5.4.290.0300.06719.24
5.4.280.0200.08019.09
5.4.270.0230.07719.08
5.4.260.0200.03719.21
5.4.250.0230.03719.06
5.4.240.0200.06719.20
5.4.230.0200.06719.08
5.4.220.0270.07319.08
5.4.210.0200.06319.15
5.4.200.0300.03719.20
5.4.190.0130.06318.81
5.4.180.0200.06019.23
5.4.170.0270.03319.24
5.4.160.0270.04318.88
5.4.150.0270.04719.22
5.4.140.0200.07016.29
5.4.130.0230.06016.34
5.4.120.0200.05716.29
5.4.110.0330.06316.47
5.4.100.0230.06716.39
5.4.90.0230.06716.23
5.4.80.0330.05016.37
5.4.70.0100.04316.38
5.4.60.0300.06016.22
5.4.50.0300.06316.49
5.4.40.0230.07016.36
5.4.30.0300.06016.20
5.4.20.0370.03316.43
5.4.10.0330.05716.37
5.4.00.0230.06015.89
5.3.290.0270.03714.71
5.3.280.0230.07014.55
5.3.270.0200.03714.44
5.3.260.0230.05714.47
5.3.250.0300.07014.48
5.3.240.0300.05014.44
5.3.230.0200.05014.57
5.3.220.0270.04314.61
5.3.210.0200.06714.61
5.3.200.0300.06314.65
5.3.190.0200.07714.40
5.3.180.0330.07014.42
5.3.170.0230.03714.50
5.3.160.0230.07014.40
5.3.150.0230.06714.49
5.3.140.0300.05714.41
5.3.130.0230.04314.54
5.3.120.0230.06014.63
5.3.110.0230.06714.48
5.3.100.0170.05013.96
5.3.90.0270.06014.00
5.3.80.0230.07013.98
5.3.70.0300.06713.87
5.3.60.0300.06313.78
5.3.50.0230.07713.80
5.3.40.0200.04313.92
5.3.30.0230.07314.00
5.3.20.0230.06013.54
5.3.10.0230.06013.61
5.3.00.0170.06013.61
5.2.170.0230.06012.31
5.2.160.0200.05712.31
5.2.150.0170.06312.31
5.2.140.0170.06712.31
5.2.130.0200.03012.31
5.2.120.0230.05712.31
5.2.110.0170.05312.31
5.2.100.0230.05312.31
5.2.90.0200.05012.31
5.2.80.0200.06312.31
5.2.70.0170.04712.31
5.2.60.0200.04712.31
5.2.50.0200.05012.31
5.2.40.0100.05712.31
5.2.30.0170.05712.31
5.2.20.0270.05012.31
5.2.10.0200.04012.31
5.2.00.0130.03012.31
5.1.60.0170.04012.31
5.1.50.0170.05012.31
5.1.40.0100.03712.31
5.1.30.0100.04712.31
5.1.20.0200.02712.31
5.1.10.0170.05712.31
5.1.00.0200.05012.31
5.0.50.0270.03012.31
5.0.40.0100.04312.31
5.0.30.0070.06312.31
5.0.20.0130.03712.31
5.0.10.0130.03312.31
5.0.00.0100.05712.31
4.4.90.0100.02312.31
4.4.80.0030.03712.31
4.4.70.0100.03312.31
4.4.60.0130.02712.31
4.4.50.0100.03012.31
4.4.40.0030.05012.31
4.4.30.0070.03312.31
4.4.20.0130.01712.31
4.4.10.0130.02312.31
4.4.00.0170.04712.31
4.3.110.0100.03312.31
4.3.100.0070.03012.31
4.3.90.0100.03312.31
4.3.80.0100.02712.31
4.3.70.0100.03312.31
4.3.60.0100.02712.31
4.3.50.0170.01712.31
4.3.40.0070.03712.31
4.3.30.0000.03312.31
4.3.20.0130.03012.31
4.3.10.0030.03312.31
4.3.00.0100.03012.31

preferences:
32.27 ms | 401 KiB | 5 Q