3v4l.org

run code in 300+ PHP versions simultaneously
<?php $usernameCheck = 'dani'; function checkUsername($username) { return (bool)!preg_match('/[^a-z_\-0-9]/i', $username); } if (true === checkUsername($usernameCheck)) { echo 'ok'; } else { echo 'false';}

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.00916.58
8.3.60.0080.00818.43
8.3.50.0070.00922.04
8.3.40.0090.00918.79
8.3.30.0100.00319.11
8.3.20.0000.00820.33
8.3.10.0110.00723.57
8.3.00.0030.00619.10
8.2.180.0160.00616.63
8.2.170.0220.00022.96
8.2.160.0090.00620.34
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00420.79
8.2.110.0090.00022.25
8.2.100.0070.00417.97
8.2.90.0080.00019.21
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0050.00318.22
8.2.30.0000.00817.96
8.2.20.0000.00717.77
8.2.10.0050.00218.09
8.2.00.0060.00317.75
8.1.280.0090.00925.92
8.1.270.0110.00723.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0110.01120.77
8.1.230.0080.00417.64
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0050.00517.34
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0040.00418.76
8.1.160.0040.00418.90
8.1.150.0000.00718.67
8.1.140.0000.00717.60
8.1.130.0000.00717.72
8.1.120.0000.00717.64
8.1.110.0040.00417.57
8.1.100.0020.00517.55
8.1.90.0000.00817.55
8.1.80.0040.00417.54
8.1.70.0000.00717.53
8.1.60.0000.00817.66
8.1.50.0050.00317.70
8.1.40.0030.00617.61
8.1.30.0050.00317.71
8.1.20.0000.00817.71
8.1.10.0000.00717.68
8.1.00.0030.00517.59
8.0.300.0060.00318.77
8.0.290.0070.00016.88
8.0.280.0030.00518.43
8.0.270.0000.00717.28
8.0.260.0030.00517.35
8.0.250.0000.00817.10
8.0.240.0070.00017.00
8.0.230.0070.00017.17
8.0.220.0040.00416.95
8.0.210.0000.00717.04
8.0.200.0030.00617.05
8.0.190.0070.00016.99
8.0.180.0050.00217.09
8.0.170.0040.00417.06
8.0.160.0000.00717.03
8.0.150.0000.00717.02
8.0.140.0040.00417.03
8.0.130.0030.00313.46
8.0.120.0030.00516.98
8.0.110.0000.00717.08
8.0.100.0000.00717.06
8.0.90.0040.00416.93
8.0.80.0090.00617.10
8.0.70.0000.00716.93
8.0.60.0050.00316.84
8.0.50.0000.00717.15
8.0.30.0060.01317.06
8.0.20.0110.01017.40
8.0.10.0040.00417.19
8.0.00.0080.01116.86
7.4.330.0000.00515.01
7.4.320.0000.00616.72
7.4.300.0070.00016.75
7.4.290.0070.00016.79
7.4.280.0110.00016.76
7.4.270.0030.00516.81
7.4.260.0030.00316.63
7.4.250.0000.00716.73
7.4.240.0030.00516.68
7.4.230.0030.00316.89
7.4.220.0130.00316.77
7.4.210.0140.00016.80
7.4.200.0070.00016.63
7.4.190.0000.00716.91
7.4.160.0150.00316.86
7.4.150.0090.01617.40
7.4.140.0100.01017.86
7.4.130.0090.00816.68
7.4.120.0090.00816.82
7.4.110.0090.00916.65
7.4.100.0110.00616.73
7.4.90.0110.00916.84
7.4.80.0110.00719.39
7.4.70.0040.01116.80
7.4.60.0120.01216.71
7.4.50.0040.00016.57
7.4.40.0070.01016.75
7.4.30.0030.01216.64
7.4.00.0080.00815.15
7.3.330.0000.00513.34
7.3.320.0030.00313.18
7.3.310.0040.00416.45
7.3.300.0050.00216.27
7.3.290.0030.01016.37
7.3.280.0060.01216.36
7.3.270.0100.01617.40
7.3.260.0170.00816.63
7.3.250.0090.00916.44
7.3.240.0120.00616.42
7.3.230.0080.00916.67
7.3.210.0120.00616.73
7.3.200.0080.00819.39
7.3.190.0090.00916.68
7.3.180.0130.01016.76
7.3.170.0070.01716.66
7.3.160.0030.01216.48
7.3.120.0050.01314.96
7.3.110.0050.01015.06
7.3.100.0030.01214.86
7.3.90.0070.00515.06
7.3.80.0090.00414.91
7.3.70.0060.00914.91
7.3.60.0070.00514.90
7.3.50.0040.00714.84
7.3.40.0060.00514.87
7.3.30.0100.00414.95
7.3.20.0050.00916.87
7.3.10.0100.00716.80
7.3.00.0080.00416.52
7.2.330.0130.00616.71
7.2.320.0030.01516.87
7.2.310.0100.00616.73
7.2.300.0100.00716.74
7.2.290.0060.01316.78
7.2.250.0080.01115.04
7.2.240.0100.00815.09
7.2.230.0070.00815.25
7.2.220.0070.00915.16
7.2.210.0040.01215.18
7.2.200.0040.00915.16
7.2.190.0070.00715.19
7.2.180.0060.00915.13
7.2.170.0020.01315.10
7.2.160.0090.00615.13
7.2.150.0070.00717.01
7.2.140.0040.01116.77
7.2.130.0140.00017.12
7.2.120.0030.01616.79
7.2.110.0210.00816.18
7.2.100.0160.00915.97
7.2.90.0670.00516.09
7.2.80.0170.00615.99
7.2.70.0180.00516.45
7.2.60.0190.00916.39
7.2.50.0150.00716.32
7.2.40.0120.00916.31
7.2.30.0170.00716.58
7.2.20.0230.00616.37
7.2.10.0260.00616.45
7.2.00.0150.00817.21
7.1.330.0050.00816.00
7.1.320.0070.00615.97
7.1.310.0080.00715.61
7.1.300.0070.00615.97
7.1.290.0060.00415.90
7.1.280.0020.01215.88
7.1.270.0020.00915.83
7.1.260.0020.01215.80
7.1.250.0040.00715.92
7.1.240.0070.00715.60
7.1.230.0180.00315.33
7.1.220.0110.01115.19
7.1.210.0500.00815.13
7.1.200.0170.00715.12
7.1.190.0120.00915.11
7.1.180.0160.01015.12
7.1.170.0320.00715.20
7.1.160.0180.00615.16
7.1.150.0170.01115.17
7.1.140.0200.00815.28
7.1.130.0300.00715.28
7.1.120.0170.00615.11
7.1.110.0380.00415.30
7.1.100.0130.00816.10
7.1.90.0140.00715.19
7.1.80.0120.00515.24
7.1.70.0120.00815.75
7.1.60.0210.00920.87
7.1.50.0170.01220.27
7.1.40.0180.00921.09
7.1.30.0190.01021.29
7.1.20.0190.00721.39
7.1.10.0210.00315.07
7.1.00.0130.02417.02
7.0.330.0060.00615.07
7.0.320.0040.01115.14
7.0.310.0620.00514.76
7.0.300.0200.00614.82
7.0.290.0230.00814.84
7.0.280.0200.00814.96
7.0.270.0240.00414.77
7.0.260.0290.00914.81
7.0.250.0210.00614.99
7.0.240.0160.01015.00
7.0.230.0160.01014.80
7.0.220.0200.00814.88
7.0.210.0120.00914.90
7.0.200.0210.00514.80
7.0.190.0130.00814.82
7.0.180.0160.00614.73
7.0.170.0180.00314.78
7.0.160.0150.00714.73
7.0.150.0220.00414.80
7.0.140.0120.02416.59
7.0.130.0160.00514.74
7.0.120.0160.00814.81
7.0.110.0180.00714.79
7.0.100.0170.00414.86
7.0.90.0180.00614.92
7.0.80.0200.00714.82
7.0.70.0140.00814.93
7.0.60.0120.01916.11
7.0.50.0120.01515.61
7.0.40.0120.01615.24
7.0.30.0180.02215.26
7.0.20.0150.01715.05
7.0.10.0110.02715.21
7.0.00.0110.01915.25
5.6.400.0070.00714.68
5.6.390.0030.01014.57
5.6.380.0070.00814.23
5.6.370.0100.00714.38
5.6.360.0120.00514.26
5.6.350.0070.00914.34
5.6.340.0130.00314.36
5.6.330.0110.00714.47
5.6.320.0100.00714.36
5.6.310.0040.01114.49
5.6.300.0100.00714.34
5.6.290.0030.01314.42
5.6.280.0080.02315.85
5.6.270.0100.00514.29
5.6.260.0070.01014.46
5.6.250.0110.00714.40
5.6.240.0110.00714.48
5.6.230.0080.00714.37
5.6.220.0130.00614.29
5.6.210.0080.01415.91
5.6.200.0070.01815.38
5.6.190.0080.01415.90
5.6.180.0130.01815.84
5.6.170.0170.02215.98
5.6.160.0120.02415.92
5.6.150.0090.02415.35
5.6.140.0110.01715.27
5.6.130.0100.02515.25
5.6.120.0120.02515.99
5.6.110.0060.01916.02
5.6.100.0080.02015.99
5.6.90.0130.01715.99
5.6.80.0110.02515.79
5.6.70.0110.00614.24
5.6.60.0070.00914.27
5.6.50.0080.01114.45
5.6.40.0140.00414.42
5.6.30.0080.00814.30
5.6.20.0110.00514.39
5.6.10.0120.00614.38
5.6.00.0120.00514.26
5.5.380.0050.00912.76
5.5.370.0070.00612.68
5.5.360.0060.00612.74
5.5.350.1170.01314.61
5.5.340.0090.01914.06
5.5.330.0060.01914.62
5.5.320.0140.02414.50
5.5.310.0120.02414.67
5.5.300.0060.02314.07
5.5.290.0050.02814.06
5.5.280.0100.02214.83
5.5.270.0080.02114.84
5.5.260.0070.02514.78
5.5.250.0120.02014.65
5.5.240.0050.01614.63
5.5.230.0070.00512.75
5.5.220.0070.00712.66
5.5.210.0070.00612.77
5.5.200.0070.00912.76
5.5.190.0070.00612.73
5.5.180.0080.00412.61
5.5.170.0060.00914.04
5.5.160.0090.00412.63
5.5.150.0060.00712.59
5.5.140.0070.00712.71
5.5.130.0100.00412.64
5.5.120.0090.00512.69
5.5.110.0080.00712.55
5.5.100.0060.01012.60
5.5.90.0080.00612.75
5.5.80.0070.00612.79
5.5.70.0090.00712.65
5.5.60.0060.00712.73
5.5.50.0030.01012.72
5.5.40.0080.00412.64
5.5.30.0070.00612.68
5.5.20.0100.00512.76
5.5.10.0090.00612.76
5.5.00.0070.00712.73
5.4.450.0360.01613.62
5.4.440.0080.01813.61
5.4.430.0080.01613.55
5.4.420.0110.01613.56
5.4.410.0090.01313.52
5.4.400.0100.01313.47
5.4.390.0110.01613.52
5.4.380.0120.02013.42
5.4.370.0220.02013.40
5.4.360.0130.02013.45
5.4.350.0160.01513.33
5.4.340.0140.01613.37
5.4.330.0040.00811.63
5.4.320.0080.01311.86
5.4.310.0040.01611.90
5.4.300.0100.02411.88
5.4.290.0090.01711.84
5.4.280.0070.01711.71
5.4.270.0070.01511.75
5.4.260.0090.01711.88
5.4.250.0070.01911.79
5.4.240.0090.01811.74
5.4.230.0080.01811.86
5.4.220.0070.01811.81
5.4.210.0070.01511.78
5.4.200.0090.01111.74
5.4.190.0070.01311.87
5.4.180.0090.01411.84
5.4.170.0070.01811.85
5.4.160.0100.01711.79
5.4.150.0090.01411.78
5.4.140.0090.01211.83
5.4.130.0090.01211.78
5.4.120.0070.01411.77
5.4.110.0070.01211.77
5.4.100.0070.01611.76
5.4.90.0060.01511.77
5.4.80.0070.01311.70
5.4.70.0070.01311.73
5.4.60.0070.01511.62
5.4.50.0050.02111.77
5.4.40.0060.01811.70
5.4.30.0080.01611.73
5.4.20.0090.01611.77
5.4.10.0090.01411.70
5.4.00.0070.01511.61
5.3.290.0090.01311.68
5.3.280.0110.01111.67
5.3.270.0100.01611.71
5.3.260.0090.01711.71
5.3.250.0070.01911.63
5.3.240.0080.01811.66
5.3.230.0070.01711.62
5.3.220.0070.01311.62
5.3.210.0090.01311.64
5.3.200.0060.02211.60
5.3.190.0050.01911.66
5.3.180.0050.02011.67
5.3.170.0090.01611.65
5.3.160.0080.01711.70
5.3.150.0120.02411.67
5.3.140.0080.01611.67
5.3.130.0080.02311.64
5.3.120.0070.01911.70
5.3.110.0060.01811.67
5.3.100.0090.01911.54
5.3.90.0120.02911.46
5.3.80.0070.01911.49
5.3.70.0070.01311.50
5.3.60.0070.01111.49
5.3.50.0100.01411.42
5.3.40.0090.01611.47
5.3.30.0090.02011.50
5.3.20.0100.02311.40
5.3.10.0090.02011.31
5.3.00.0070.02011.36
5.2.170.0070.01710.84
5.2.160.0070.01710.84
5.2.150.0070.01810.84
5.2.140.0050.03310.83
5.2.130.0080.01310.82
5.2.120.0070.01710.82
5.2.110.0100.02210.82
5.2.100.0080.02110.82
5.2.90.0090.01710.82
5.2.80.0100.02010.82
5.2.70.0080.01810.82
5.2.60.0050.02210.81
5.2.50.0040.02010.79
5.2.40.0080.01310.79
5.2.30.0080.01910.78
5.2.20.0040.02010.78
5.2.10.0090.01210.74
5.2.00.0080.01310.70
5.1.60.0050.01310.46
5.1.50.0080.01310.46
5.1.40.0080.01210.45
5.1.30.0050.01310.57
5.1.20.0070.01210.57
5.1.10.0080.01310.49
5.1.00.0070.01410.49
5.0.50.0040.0119.97
5.0.40.0040.0109.93
5.0.30.0010.0189.87
5.0.20.0050.0099.85
5.0.10.0050.0109.85
5.0.00.0050.0139.85
4.4.90.0020.0099.36
4.4.80.0040.0079.35
4.4.70.0020.0109.35
4.4.60.0030.0079.35
4.4.50.0030.0089.35
4.4.40.0030.0129.33
4.4.30.0060.0059.35
4.4.20.0050.0199.38
4.4.10.0060.0089.38
4.4.00.0050.0149.35
4.3.110.0030.0109.32
4.3.100.0050.0089.32
4.3.90.0050.0089.31
4.3.80.0010.0169.29
4.3.70.0060.0149.31
4.3.60.0030.0109.31
4.3.50.0050.0099.31
4.3.40.0030.0149.28
4.3.30.0030.0098.86
4.3.20.0030.0098.85
4.3.10.0050.0088.84
4.3.00.0030.00813.42

preferences:
55.22 ms | 401 KiB | 5 Q