3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['pulseCheck'] = "seven + four"; $_POST['solution'] = "12"; $lookup = array_flip( ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"] ); if (!preg_match('~^(10|\d) \+ (10|\d)$~', strtr($_POST['pulseCheck'], $lookup), $matches) || $matches[1] + $matches[2] != $_POST['solution'] ) { exit('Something went wrong'); }

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.130.0110.00917.90
8.4.120.0120.00924.14
8.4.110.0130.00720.85
8.4.100.0100.01118.63
8.4.90.0110.01020.70
8.4.80.0060.00818.74
8.4.70.0110.00318.83
8.4.60.0100.01020.44
8.4.50.0130.00818.88
8.4.40.0170.00320.05
8.4.30.0040.00420.40
8.4.20.0120.00924.30
8.4.10.0060.00624.41
8.3.260.0120.00916.79
8.3.250.0120.00618.93
8.3.240.0070.00717.05
8.3.230.0140.00616.65
8.3.220.0100.00519.07
8.3.210.0100.00916.82
8.3.200.0030.00616.80
8.3.190.0070.01417.37
8.3.180.0080.01118.94
8.3.170.0070.01119.03
8.3.160.0200.00016.79
8.3.150.0070.00316.95
8.3.140.0110.00716.93
8.3.130.0000.00816.83
8.3.120.0120.00618.68
8.3.110.0050.00317.17
8.3.100.0080.00316.73
8.3.90.0170.00326.77
8.3.80.0030.00617.00
8.3.70.0080.00816.63
8.3.60.0060.00916.63
8.3.50.0090.00824.51
8.3.40.0150.00620.67
8.3.30.0120.00919.00
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.290.0100.00920.21
8.2.280.0040.00618.46
8.2.270.0100.01016.86
8.2.260.0080.00817.19
8.2.250.0060.00319.32
8.2.240.0060.01217.39
8.2.230.0060.00320.94
8.2.220.0030.00624.06
8.2.210.0120.00626.77
8.2.200.0060.00316.75
8.2.190.0070.01416.75
8.2.180.0040.01125.92
8.2.170.0120.00319.04
8.2.160.0070.01322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00318.97
8.2.110.0060.00319.34
8.2.100.0120.00417.91
8.2.90.0040.00419.18
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0030.00617.93
8.2.50.0040.00718.07
8.2.40.0000.00918.22
8.2.30.0040.00418.11
8.2.20.0040.00418.09
8.2.10.0040.00419.40
8.2.00.0040.00419.40
8.1.330.0090.01021.89
8.1.320.0100.00516.21
8.1.310.0140.00318.45
8.1.300.0120.00318.61
8.1.290.0050.00530.84
8.1.280.0060.01225.92
8.1.270.0070.01323.73
8.1.260.0050.00327.51
8.1.250.0040.00428.09
8.1.240.0150.00317.76
8.1.230.0130.00017.79
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0000.00817.60
8.1.190.0050.00317.36
8.1.180.0050.00318.10
8.1.170.0000.00818.81
8.1.160.0040.00418.91
8.1.150.0070.00018.86
8.1.140.0040.00418.93
8.1.130.0000.00720.23
8.1.120.0030.00617.55
8.1.110.0040.00717.52
8.1.100.0000.00717.53
8.1.90.0090.00017.60
8.1.80.0000.00717.55
8.1.70.0000.00717.66
8.1.60.0080.00017.73
8.1.50.0040.00417.75
8.1.40.0050.00317.56
8.1.30.0000.00717.83
8.1.20.0050.00217.76
8.1.10.0080.00017.74
8.1.00.0000.00817.58
8.0.300.0070.00018.77
8.0.290.0000.00816.88
8.0.280.0000.00718.39
8.0.270.0070.00018.24
8.0.260.0000.00718.39
8.0.250.0040.00417.18
8.0.240.0070.00017.08
8.0.230.0050.00317.06
8.0.220.0070.00017.13
8.0.210.0040.00417.15
8.0.200.0030.00617.12
8.0.190.0040.00417.20
8.0.180.0030.00517.14
8.0.170.0040.00417.14
8.0.160.0060.00317.14
8.0.150.0000.00716.98
8.0.140.0000.00817.09
8.0.130.0000.00613.62
8.0.120.0050.00217.13
8.0.110.0040.00416.89
8.0.100.0050.00217.16
8.0.90.0040.00417.09
8.0.80.0060.01217.10
8.0.70.0040.00416.96
8.0.60.0050.00217.17
8.0.50.0000.00716.97
8.0.30.0070.01017.56
8.0.20.0020.01617.31
8.0.10.0040.00417.15
8.0.00.0090.01817.23
7.4.330.0050.00015.55
7.4.320.0030.00316.73
7.4.300.0000.00616.73
7.4.290.0030.00616.84
7.4.280.0050.00316.80
7.4.270.0030.00316.80
7.4.260.0000.00613.39
7.4.250.0000.00716.61
7.4.240.0070.00016.69
7.4.230.0030.00316.62
7.4.220.0020.00516.88
7.4.210.0030.01016.85
7.4.200.0030.00316.62
7.4.130.0130.00616.72
7.4.120.0130.01016.71
7.4.110.0060.01216.85
7.4.100.0120.00616.71
7.4.90.0140.00516.52
7.4.80.0180.00316.43
7.4.70.0140.00716.40
7.4.60.0100.01016.20
7.4.50.0160.00416.54
7.4.40.0100.01016.60
7.4.30.0110.00716.64
7.4.20.0100.00716.62
7.4.10.0090.00916.51
7.4.00.0070.01416.54
7.3.330.0000.00816.33
7.3.320.0000.00513.46
7.3.310.0080.00016.56
7.3.300.0030.00316.48
7.3.290.0070.00916.49
7.3.260.0130.00716.69
7.3.230.0150.00916.38
7.3.220.0080.00916.39
7.3.210.0060.01516.48
7.3.200.0130.00816.50
7.3.190.0130.00816.35
7.3.180.0000.02016.36
7.3.170.0150.00516.34
7.3.160.0180.00416.19
7.3.150.0150.00316.39
7.3.140.0110.00716.43
7.3.130.0110.00616.56
7.3.120.0150.00316.61
7.3.110.0080.00816.39
7.3.100.0160.00016.41
7.3.90.0120.00616.67
7.3.80.0160.00316.71
7.3.70.0090.00816.52
7.3.60.0060.01216.35
7.3.50.0100.00916.46
7.3.40.0140.00716.47
7.3.30.0170.00716.37
7.3.20.0030.01916.29
7.3.10.0150.01116.08
7.3.00.0100.00816.28
7.2.330.0130.00916.49
7.2.320.0150.00616.38
7.2.310.0120.00816.81
7.2.300.0170.00316.41
7.2.290.0140.00716.66
7.2.280.0070.01316.77
7.2.270.0110.01116.57
7.2.260.0060.01216.47
7.2.250.0120.00616.72
7.2.240.0150.00316.59
7.2.230.0070.01016.77
7.2.220.0100.00716.78
7.2.210.0110.00816.64
7.2.200.0090.01016.70
7.2.190.0080.00816.86
7.2.180.0120.00816.63
7.2.170.0100.01016.87
7.2.160.0110.01316.69
7.2.150.0140.01316.70
7.2.140.1020.01016.77
7.2.130.0190.00016.66
7.2.120.0150.00816.49
7.2.110.0180.00616.49
7.2.100.0120.01316.53
7.2.90.0070.02116.46
7.2.80.0170.01016.52
7.2.70.0200.00816.52
7.2.60.0120.01516.61
7.2.50.0130.01016.89
7.2.40.0180.00716.75
7.2.30.0170.00716.88
7.2.20.0090.01616.57
7.2.10.0090.00916.76
7.2.00.0170.00316.80

preferences:
25.84 ms | 403 KiB | 5 Q