3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pin1='1234'; $pin2='1234-5678'; $pin3='1234-5678-0000-5566-8900-5600-4555-1330-2334'; function countPin($pin) { return substr_count($pin, '-') + 1; } echo 'Pin 1 heeft ' . countPin($pin1) . ' code(s), '; echo 'pin 2 heeft ' . countPin($pin2) . ' code(s) en '; echo 'pin 3 heeft ' . countPin($pin3) . ' code(s).';

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.4.10.0100.01017.45
8.3.140.0000.00817.02
8.3.130.0080.00018.51
8.3.120.0160.00320.85
8.3.110.0030.00616.41
8.3.100.0100.01024.06
8.3.90.0170.00326.77
8.3.80.0030.00617.97
8.3.70.0070.01118.43
8.3.60.0150.00316.73
8.3.50.0120.00821.13
8.3.40.0030.01218.75
8.3.30.0100.00318.96
8.3.20.0070.00020.16
8.3.10.0040.00421.82
8.3.00.0080.00017.90
8.2.250.0000.00818.32
8.2.240.0050.00317.05
8.2.230.0030.00720.94
8.2.220.0000.00737.54
8.2.210.0040.01126.77
8.2.200.0100.00018.29
8.2.190.0110.00416.58
8.2.180.0080.00818.16
8.2.170.0040.01118.73
8.2.160.0030.01122.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0030.00619.76
8.2.110.0150.00419.27
8.2.100.0080.00417.84
8.2.90.0060.00318.03
8.2.80.0000.00818.03
8.2.70.0040.00417.63
8.2.60.0050.00517.80
8.2.50.0030.00718.07
8.2.40.0020.00518.28
8.2.30.0100.00018.14
8.2.20.0040.00417.69
8.2.10.0000.00718.09
8.2.00.0040.00417.99
8.1.300.0040.00416.24
8.1.290.0040.00430.84
8.1.280.0110.00325.92
8.1.270.0120.00620.22
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00623.86
8.1.230.0080.00320.91
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0080.00017.30
8.1.180.0000.00818.61
8.1.170.0000.00718.65
8.1.160.0000.00822.15
8.1.150.0070.00018.55
8.1.140.0040.00417.43
8.1.130.0030.00517.73
8.1.120.0040.00417.40
8.1.110.0000.00817.52
8.1.100.0040.00417.39
8.1.90.0000.00717.39
8.1.80.0040.00417.37
8.1.70.0030.00317.46
8.1.60.0030.00617.55
8.1.50.0040.00417.59
8.1.40.0000.00817.49
8.1.30.0080.00017.56
8.1.20.0030.00617.74
8.1.10.0020.00517.50
8.1.00.0050.00217.31
8.0.300.0000.00719.87
8.0.290.0050.00316.75
8.0.280.0030.00318.44
8.0.270.0000.00717.25
8.0.260.0000.00817.27
8.0.250.0000.00717.00
8.0.240.0020.00516.82
8.0.230.0000.00716.91
8.0.220.0040.00316.80
8.0.210.0090.00016.77
8.0.200.0050.00316.88
8.0.190.0040.00416.88
8.0.180.0040.00416.91
8.0.170.0040.00416.82
8.0.160.0000.00817.00
8.0.150.0000.00716.89
8.0.140.0000.01116.80
8.0.130.0000.00513.29
8.0.120.0040.00416.89
8.0.110.0050.00316.79
8.0.100.0050.00216.97
8.0.90.0040.00416.86
8.0.80.0030.01716.88
8.0.70.0050.00216.81
8.0.60.0050.00216.77
8.0.50.0070.00016.71
8.0.30.0080.01217.03
8.0.20.0130.00617.40
8.0.10.0040.00416.90
8.0.00.0180.00416.73
7.4.330.0030.00315.03
7.4.320.0030.00316.44
7.4.300.0000.00716.53
7.4.290.0070.00016.57
7.4.280.0020.00516.45
7.4.270.0040.00416.63
7.4.260.0000.00716.51
7.4.250.0040.00416.60
7.4.240.0030.00416.58
7.4.230.0030.00316.60
7.4.220.0070.01116.38
7.4.210.0070.01216.57
7.4.200.0040.00416.63
7.4.160.0120.00316.51
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0100.00716.49
7.4.120.0110.00916.44
7.4.110.0110.00616.46
7.4.100.0150.00516.65
7.4.90.0100.00716.44
7.4.80.0100.01319.39
7.4.70.0120.01016.47
7.4.60.0040.01816.47
7.4.50.0000.00816.61
7.4.40.0100.00616.44
7.4.30.0100.00716.41
7.4.10.0090.00915.18
7.4.00.0020.01415.12
7.3.330.0050.00013.23
7.3.320.0000.00613.16
7.3.310.0030.00316.21
7.3.300.0000.00716.29
7.3.290.0080.00016.10
7.3.280.0100.00516.24
7.3.270.0090.00917.40
7.3.260.0070.01116.36
7.3.250.0080.00816.34
7.3.240.0060.00916.37
7.3.230.0130.00816.60
7.3.210.0100.01016.48
7.3.200.0150.00319.39
7.3.190.0030.01716.42
7.3.180.0030.01216.50
7.3.170.0090.00916.30
7.3.160.0120.00616.38
7.3.130.0060.01214.80
7.3.120.0000.01214.89
7.3.110.0090.00914.71
7.3.100.0060.01014.75
7.3.90.0000.00914.89
7.3.80.0040.01114.87
7.3.70.0030.00914.66
7.3.60.0090.00614.91
7.3.50.0030.01314.52
7.3.40.0060.00914.91
7.3.30.0070.00714.82
7.3.20.0030.01316.68
7.3.10.0070.01016.40
7.3.00.0000.01516.63
7.2.330.0130.01016.35
7.2.320.0090.00916.74
7.2.310.0090.01216.75
7.2.300.0100.01316.81
7.2.290.0080.00816.53
7.2.260.0070.01014.69
7.2.250.0040.01514.98
7.2.240.0000.01715.31
7.2.230.0090.00914.95
7.2.220.0110.00414.79
7.2.210.0040.01114.79
7.2.200.0030.00915.12
7.2.190.0060.00915.04
7.2.180.0030.01314.82
7.2.170.0080.00315.02
7.2.160.0030.01014.91
7.2.150.0000.01416.94
7.2.140.0060.00316.54
7.2.130.0100.00416.90
7.2.120.0060.00816.69
7.2.110.0050.00716.84
7.2.100.0120.00516.86
7.2.90.0100.00316.98
7.2.80.0060.00516.79
7.2.70.0070.00917.08
7.2.60.0060.00916.92
7.2.50.0060.00816.89
7.2.40.0070.00916.86
7.2.30.0120.00316.76
7.2.20.0110.00316.77
7.2.10.0060.00616.80
7.2.00.0040.00916.90
7.1.330.0070.00415.99
7.1.320.0070.01415.80
7.1.310.0030.00915.65
7.1.300.0100.00715.67
7.1.290.0000.01215.73
7.1.280.0030.01015.65
7.1.270.0060.01015.69
7.1.260.0110.00015.73
7.1.250.0120.00415.79
7.1.240.0080.00715.77
7.1.230.0030.01015.72
7.1.220.0030.01015.78
7.1.210.0070.00915.54
7.1.200.0070.00515.83
7.1.190.0040.01015.66
7.1.180.0070.00915.85
7.1.170.0100.00515.65
7.1.160.0020.01215.83
7.1.150.0050.00615.59
7.1.140.0070.00715.72
7.1.130.0050.00515.68
7.1.120.0010.01015.67
7.1.110.0080.00415.77
7.1.100.0080.00715.73
7.1.90.0030.01115.81
7.1.80.0050.00615.79
7.1.70.0040.00616.03
7.1.60.0060.00917.13
7.1.50.0020.01216.22
7.1.40.0080.00715.52
7.1.30.0040.00615.66
7.1.20.0050.00715.73
7.1.10.0040.00915.56
7.1.00.0030.03218.00
7.0.330.0040.00715.27
7.0.320.0090.00615.29
7.0.310.0020.01015.28
7.0.300.0090.00015.47
7.0.290.0060.00415.25
7.0.280.0020.01215.14
7.0.270.0090.00515.29
7.0.260.0060.00815.28
7.0.250.0080.00515.41
7.0.240.0020.00915.49
7.0.230.0040.00715.34
7.0.220.0080.00515.09
7.0.210.0060.00615.32
7.0.200.0050.00615.69
7.0.190.0040.00615.16
7.0.180.0030.01215.40
7.0.170.0040.00815.33
7.0.160.0030.00715.14
7.0.150.0140.00315.43
7.0.140.0040.01015.43
7.0.130.0040.00915.33
7.0.120.0070.00515.21
7.0.110.0040.00515.28
7.0.100.0050.00715.20
7.0.90.0070.00615.15
7.0.80.0070.00715.15
7.0.70.0060.00715.26
7.0.60.0040.02716.85
7.0.50.0070.02016.19
7.0.40.0090.02315.46
7.0.30.0160.03215.63
7.0.20.0110.03415.70
7.0.10.0090.02315.61
7.0.00.0060.01915.58
5.6.400.0090.00314.32
5.6.390.0060.00314.46
5.6.380.0040.00914.17
5.6.370.0000.01114.20
5.6.360.0030.01014.19
5.6.350.0070.00614.22
5.6.340.0050.01114.37
5.6.330.0040.01114.24
5.6.320.0030.00814.37
5.6.310.0110.00614.36
5.6.300.0050.01014.21
5.6.290.0030.01014.47
5.6.280.0040.03016.64
5.6.270.0070.00614.40
5.6.260.0050.00814.28
5.6.250.0030.00614.27
5.6.240.0050.00614.19
5.6.230.0070.00914.07
5.6.220.0050.00714.26
5.6.210.0070.03316.47
5.6.200.0110.02415.44
5.6.190.0090.02816.46
5.6.180.0120.02916.20
5.6.170.0110.03016.31
5.6.160.0060.03016.39
5.6.150.0070.03215.70
5.6.140.0030.02015.57
5.6.130.0050.03315.52
5.6.120.0030.03616.46
5.6.110.0020.03916.38
5.6.100.0070.02416.56
5.6.90.0070.01616.43
5.6.80.0040.03016.17
5.6.70.0060.00814.38
5.6.60.0070.00514.19
5.6.50.0070.00814.05
5.6.40.0100.00614.01
5.6.30.0050.00814.34
5.6.20.0060.01014.13
5.6.10.0090.00614.19
5.6.00.0040.01114.11
5.5.380.0070.00512.73
5.5.370.0010.00712.74
5.5.360.0010.01112.48
5.5.350.0080.02815.15
5.5.340.0070.02114.38
5.5.330.0050.02815.14
5.5.320.1220.01715.25
5.5.310.0140.02015.29
5.5.300.0040.02514.25
5.5.290.0080.02914.47
5.5.280.0060.03115.37
5.5.270.0060.02715.14
5.5.260.0040.03315.47
5.5.250.0100.02615.38
5.5.240.0050.03015.09
5.5.230.0060.00212.56
5.5.220.0050.00512.78
5.5.210.0050.00812.59
5.5.200.0080.00612.69
5.5.190.0060.00412.35
5.5.180.0110.00112.45
5.5.170.0030.00812.47
5.5.160.0070.00312.56
5.5.150.0030.00812.41
5.5.140.0020.00612.58
5.5.130.0050.00812.46
5.5.120.0070.00512.55
5.5.110.0000.00912.74
5.5.100.0050.00712.55
5.5.90.0080.00312.63
5.5.80.0030.00612.39
5.5.70.0070.00312.64
5.5.60.0050.00912.38
5.5.50.0070.00712.36
5.5.40.0090.00212.47
5.5.30.0050.00812.81
5.5.20.0030.00712.74
5.5.10.0090.00212.46
5.5.00.0070.00812.63
5.4.450.0280.02114.09
5.4.440.0240.01814.09
5.4.430.0090.01913.90
5.4.420.0080.02114.16
5.4.410.0100.01713.89
5.4.400.0100.02013.77
5.4.390.0070.01913.83
5.4.380.0070.02013.75
5.4.370.0110.01413.87
5.4.360.0050.02113.66
5.4.350.0040.02313.87
5.4.340.0050.02313.79
5.4.330.0090.00211.45
5.4.320.0070.02213.70
5.4.310.0050.02113.74
5.4.300.0040.02313.73
5.4.290.0090.02613.86
5.4.280.0080.02213.73
5.4.270.0040.02313.83
5.4.260.0080.01913.63
5.4.250.0090.01913.74
5.4.240.0060.02213.66
5.4.230.0100.01613.80
5.4.220.0050.02213.54
5.4.210.0050.02413.77
5.4.200.0060.02213.10
5.4.190.0080.02013.74
5.4.180.0060.02713.71
5.4.170.0020.02813.84
5.4.160.0070.01913.76
5.4.150.0050.02113.65
5.4.140.0090.02013.04
5.4.130.0100.02213.00
5.4.120.0020.02412.99
5.4.110.0010.02312.96
5.4.100.0040.02213.03
5.4.90.0010.02612.90
5.4.80.0110.02312.97
5.4.70.0020.02913.03
5.4.60.0040.02212.93
5.4.50.0030.02212.91
5.4.40.0020.02512.98
5.4.30.0100.01513.02
5.4.20.0050.01912.88
5.4.10.0040.02112.90
5.4.00.0050.02012.76
5.3.290.0080.02812.78
5.3.280.0090.02712.63
5.3.270.0050.03312.62
5.3.260.0030.03312.65
5.3.250.0050.02812.60
5.3.240.0070.02812.57
5.3.230.0020.03712.53
5.3.220.0150.03512.49
5.3.210.0050.04712.61
5.3.200.0100.03112.59
5.3.190.0050.04712.47
5.3.180.0070.03112.54
5.3.170.0070.02812.64
5.3.160.0080.02712.65
5.3.150.0070.02812.70
5.3.140.0070.02512.60
5.3.130.0080.02812.52
5.3.120.0080.03412.49
5.3.110.0100.03712.63
5.3.100.0050.03712.30
5.3.90.0110.02912.45
5.3.80.0050.03012.35
5.3.70.0100.02812.31
5.3.60.0020.03112.31
5.3.50.0080.03012.21
5.3.40.0030.03012.23
5.3.30.0060.03612.34
5.3.20.0110.03112.12
5.3.10.0030.03212.03
5.3.00.0100.02612.13
5.2.170.0050.02310.69
5.2.160.0050.02310.71
5.2.150.0070.02410.71
5.2.140.0100.02010.75
5.2.130.0100.01810.69
5.2.120.0100.01710.71
5.2.110.0050.02310.73
5.2.100.0050.02010.70
5.2.90.0050.02310.68
5.2.80.0070.02210.73
5.2.70.0060.02310.67
5.2.60.0020.02510.68
5.2.50.0050.02310.69
5.2.40.0020.02710.68
5.2.30.0050.02310.65
5.2.20.0070.02310.61
5.2.10.0070.02010.55
5.2.00.0070.02310.53
5.1.60.0020.01910.13
5.1.50.0050.01810.14
5.1.40.0020.02210.14
5.1.30.0060.01810.38
5.1.20.0090.01810.31
5.1.10.0080.02310.17
5.1.00.0020.03110.22
5.0.50.0070.0179.49
5.0.40.0020.0179.35
5.0.30.0080.0189.30
5.0.20.0030.0149.24
5.0.10.0000.0199.31
5.0.00.0030.0229.27
4.4.90.0010.0138.09
4.4.80.0020.0138.12
4.4.70.0030.0138.08
4.4.60.0030.0168.06
4.4.50.0000.0148.08
4.4.40.0050.0188.07
4.4.30.0000.0188.08
4.4.20.0020.0138.12
4.4.10.0070.0088.10
4.4.00.0050.0168.08
4.3.110.0030.0138.04
4.3.100.0030.0118.04
4.3.90.0000.0148.02
4.3.80.0050.0168.03
4.3.70.0020.0138.03
4.3.60.0020.0128.02
4.3.50.0000.0148.02
4.3.40.0030.0238.01
4.3.30.0050.0137.43
4.3.20.0000.0137.42
4.3.10.0020.0177.37
4.3.00.0030.00912.87

preferences:
34.42 ms | 403 KiB | 5 Q