3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = "Raphaƫl said you aren't coming home."; function isValidLength($text, $length) { return $length <= preg_match_all("~[\pL\pM'-]+~u", $text); } var_export( [ 5 => isValidLength($text, 5), 6 => isValidLength($text, 6), 7 => isValidLength($text, 7), ] );

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.5.90.0100.00916.90
8.5.80.0220.00717.06
8.5.70.0220.00417.92
8.5.60.0200.00916.91
8.5.50.0130.00616.78
8.5.40.0360.00616.80
8.5.30.0250.00517.13
8.5.20.0190.00918.16
8.5.10.0190.01117.63
8.5.00.0100.01018.28
8.4.240.0150.00919.94
8.4.230.0190.01019.61
8.4.220.0220.01119.64
8.4.210.0230.00520.72
8.4.200.0340.00719.88
8.4.190.0330.00919.68
8.4.180.0220.01119.86
8.4.170.0210.01120.20
8.4.160.0210.01120.15
8.4.150.0150.00818.05
8.4.140.0190.01117.75
8.4.130.0090.00618.47
8.4.120.0220.00721.01
8.4.110.0190.00819.44
8.4.100.0200.00718.47
8.4.90.0200.01119.40
8.4.80.0200.00718.40
8.4.70.0230.00918.15
8.4.60.0230.00918.60
8.4.50.0210.01018.96
8.4.40.0260.00618.02
8.4.30.0200.00619.13
8.4.20.0260.00918.81
8.4.10.0250.00717.89
8.3.330.0090.01018.68
8.3.320.0260.00718.43
8.3.310.0230.00718.60
8.3.300.0210.00919.78
8.3.290.0210.00919.74
8.3.280.0270.00919.37
8.3.270.0220.00816.77
8.3.260.0170.00916.85
8.3.250.0210.00617.93
8.3.240.0180.00917.23
8.3.230.0200.00716.74
8.3.220.0230.00717.90
8.3.210.0230.00716.89
8.3.200.0230.00716.72
8.3.190.0220.00817.21
8.3.180.0180.00616.71
8.3.170.0220.00416.94
8.3.160.0250.00616.98
8.3.150.0190.01117.24
8.3.140.0170.01017.01
8.3.130.0160.00816.80
8.3.120.0160.00417.93
8.3.110.0200.00818.95
8.3.100.0180.00720.46
8.3.90.0180.00721.88
8.3.80.0190.00816.93
8.3.70.0210.00816.84
8.3.60.0250.00717.82
8.3.50.0200.00917.59
8.3.40.0240.00519.53
8.3.30.0180.00818.49
8.3.20.0160.00521.14
8.3.10.0150.00621.38
8.3.00.0190.00322.06
8.2.320.0280.00818.99
8.2.310.0250.00718.23
8.2.300.0220.00919.25
8.2.290.0100.00419.66
8.2.280.0190.00817.79
8.2.270.0200.00717.09
8.2.260.0200.00918.71
8.2.250.0180.00416.74
8.2.240.0160.00717.08
8.2.230.0170.00519.70
8.2.220.0150.00727.11
8.2.210.0140.00621.73
8.2.200.0170.00616.90
8.2.190.0140.01616.79
8.2.180.0220.00721.32
8.2.170.0190.00618.71
8.2.160.0160.00920.55
8.2.150.0130.00921.94
8.2.140.0150.00621.40
8.2.130.0150.00622.07
8.2.120.0210.00522.02
8.2.110.0170.00519.31
8.2.100.0160.00818.03
8.2.90.0180.00618.12
8.2.80.0170.00518.48
8.2.70.0150.00717.92
8.2.60.0200.00318.13
8.2.50.0150.00818.08
8.2.40.0160.00819.15
8.2.30.0190.00417.97
8.2.20.0150.00618.06
8.2.10.0150.00718.56
8.2.00.0200.00418.57
8.1.340.0240.00818.98
8.1.330.0200.00919.04
8.1.320.0160.00916.32
8.1.310.0160.01116.57
8.1.300.0170.00617.46
8.1.290.0170.00717.54
8.1.280.0140.00821.13
8.1.270.0170.00520.93
8.1.260.0100.00322.12
8.1.250.0110.00922.96
8.1.240.0170.00620.90
8.1.230.0170.00619.40
8.1.220.0160.00617.78
8.1.210.0140.00818.28
8.1.200.0160.00617.59
8.1.190.0170.00417.63
8.1.180.0170.00617.91
8.1.170.0150.00718.32
8.1.160.0150.00618.49
8.1.150.0140.00618.26
8.1.140.0160.00717.65
8.1.130.0160.00617.80
8.1.120.0180.00617.72
8.1.110.0170.00517.68
8.1.100.0120.01017.76
8.1.90.0150.00717.75
8.1.80.0160.00617.71
8.1.70.0140.00517.71
8.1.60.0170.00317.79
8.1.50.0170.00817.76
8.1.40.0170.00617.66
8.1.30.0150.00717.89
8.1.20.0160.00717.84
8.1.10.0180.00317.80
8.1.00.0130.00817.61
8.0.300.0160.00417.95
8.0.290.0170.00617.03
8.0.280.0160.00517.80
8.0.270.0140.00617.11
8.0.260.0140.00417.04
8.0.250.0140.00617.13
8.0.240.0100.00517.17
8.0.230.0160.00517.25
8.0.220.0190.00317.08
8.0.210.0120.00817.26
8.0.200.0120.00816.96
8.0.190.0150.00617.07
8.0.180.0150.00517.20
8.0.170.0150.00617.18
8.0.160.0120.00817.12
8.0.150.0150.00617.09
8.0.140.0190.00317.19
8.0.130.0170.00515.40
8.0.120.0130.00817.08
8.0.110.0130.00817.21
8.0.100.0140.00617.18
8.0.90.0150.00517.18
8.0.80.0160.00417.25
8.0.70.0160.00516.95
8.0.60.0160.00517.09
8.0.50.0190.00417.15
8.0.30.0140.00717.04
8.0.20.0140.00517.22
8.0.10.0130.00717.14
8.0.00.0130.00717.28
7.4.330.0130.00616.21
7.4.320.0180.00716.87
7.4.300.0170.00616.77
7.4.290.0170.00316.72
7.4.280.0170.00316.91
7.4.270.0120.00816.87
7.4.260.0140.00515.32
7.4.250.0130.00816.80
7.4.240.0150.00516.77
7.4.230.0150.00616.74
7.4.220.0130.00716.92
7.4.210.0130.00816.81
7.4.200.0140.00716.73
7.4.190.0140.00216.98
7.4.180.0130.00216.88
7.4.160.0150.00516.87
7.4.150.0180.00516.75
7.4.140.0150.00716.70
7.4.130.0140.00616.64
7.4.120.0160.00516.65
7.4.110.0140.00616.67
7.4.100.0140.00716.87
7.4.90.0140.00516.84
7.4.80.0150.00616.73
7.4.70.0130.00716.73
7.4.60.0140.00616.84
7.4.50.0120.00616.79
7.4.40.0140.00716.73
7.4.30.0150.00516.55
7.4.20.0130.00616.60
7.4.10.0150.00616.73
7.4.00.0130.00616.63
7.3.330.0140.00516.64
7.3.320.0100.00615.01
7.3.310.0100.00616.62
7.3.300.0130.00416.60
7.3.290.0100.00816.51
7.3.280.0130.00316.60
7.3.270.0170.00516.43
7.3.260.0150.00416.55
7.3.250.0130.00516.54
7.3.240.0130.00616.56
7.3.230.0160.00416.56
7.3.220.0120.00716.65
7.3.210.0150.00316.68
7.3.200.0130.00316.58
7.3.190.0120.00616.59
7.3.180.0140.00416.60
7.3.170.0110.00216.56
7.3.160.0150.00416.64
7.3.150.0170.00316.54
7.3.140.0140.00616.55
7.3.130.0140.00616.64
7.3.120.0160.00716.40
7.3.110.0090.00616.46
7.3.100.0060.00416.49
7.3.90.0140.00116.75
7.3.80.0100.01016.62
7.3.70.0140.00416.55
7.3.60.0150.00416.75
7.3.50.0150.00416.83
7.3.40.0140.00616.82
7.3.30.0170.00416.72
7.3.20.0290.00617.71
7.3.10.0310.00517.60
7.3.00.0130.00617.60

preferences:
49.05 ms | 1450 KiB | 5 Q