3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = '<first>Micky</first> <last>Mouse</last> <state>CA</state> <first>Donald</first> <LAST>Duck</LAST> <state>FL</state> <FIRST>Gyro</FIRST> <last>Gearloose</last> <state>MA</state>'; $searchfor = '(<first>|<last>|<state>)'; $regExp = '/^'.$searchfor.'(.*)$/m'; if(preg_match_all(strtolower($regExp), strtolower($contents), $matches)){ echo 'matches'; } else{ echo 'no matches'; } print_r($matches);

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.10.0120.00716.84
8.5.00.0130.00821.80
8.4.150.0030.00014.05
8.4.140.0120.01017.65
8.4.130.0070.01418.95
8.4.120.0090.00524.27
8.4.110.0140.00722.39
8.4.100.0140.00620.62
8.4.90.0090.01118.93
8.4.80.0120.00820.57
8.4.70.0080.01118.14
8.4.60.0100.01218.25
8.4.50.0110.01023.45
8.4.40.0030.00717.70
8.4.30.0090.00917.78
8.4.20.0090.00919.75
8.4.10.0130.00617.81
8.3.280.0120.00818.61
8.3.270.0140.00816.64
8.3.260.0070.00316.70
8.3.250.0070.00118.75
8.3.240.0120.00817.11
8.3.230.0080.00816.95
8.3.220.0140.00418.93
8.3.210.0130.00716.43
8.3.200.0030.00516.97
8.3.190.0100.01018.78
8.3.180.0070.01216.79
8.3.170.0090.00916.92
8.3.160.0160.00319.02
8.3.150.0090.00916.85
8.3.140.0030.01317.10
8.3.130.0120.00016.60
8.3.120.0030.00620.69
8.3.110.0040.00420.94
8.3.100.0060.00924.06
8.3.90.0120.00318.31
8.3.80.0030.00618.43
8.3.70.0070.00716.63
8.3.60.0140.00718.68
8.3.50.0100.00518.47
8.3.40.0150.00019.09
8.3.30.0110.00418.72
8.3.20.0040.00419.15
8.3.10.0040.00419.34
8.3.00.0080.00021.70
8.2.290.0130.00520.14
8.2.280.0050.00318.22
8.2.270.0110.00716.93
8.2.260.0040.00416.94
8.2.250.0060.00318.75
8.2.240.0130.00718.88
8.2.230.0030.00622.58
8.2.220.0080.01237.54
8.2.210.0060.00326.77
8.2.200.0070.00416.75
8.2.190.0150.00016.58
8.2.180.0070.00718.41
8.2.170.0000.01422.96
8.2.160.0070.00719.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.89
8.2.120.0040.00426.35
8.2.110.0030.00620.47
8.2.100.0060.00617.77
8.2.90.0030.00617.88
8.2.80.0000.00818.91
8.2.70.0040.00417.75
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00818.07
8.2.30.0030.00517.97
8.2.20.0000.00718.00
8.2.10.0030.00618.03
8.2.00.0030.00319.42
8.1.330.0130.00522.22
8.1.320.0100.01016.58
8.1.310.0150.00316.58
8.1.300.0040.01120.07
8.1.290.0060.00318.88
8.1.280.0040.01225.92
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0100.00722.14
8.1.230.0030.00923.93
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0050.00318.93
8.1.150.0080.00018.80
8.1.140.0040.00417.77
8.1.130.0000.00717.60
8.1.120.0040.00417.59
8.1.110.0040.00417.65
8.1.100.0000.00717.61
8.1.90.0040.00417.60
8.1.80.0040.00417.54
8.1.70.0000.01017.63
8.1.60.0070.00317.74
8.1.50.0030.00617.55
8.1.40.0030.00617.67
8.1.30.0030.00617.83
8.1.20.0050.00317.83
8.1.10.0000.00917.74
8.1.00.0040.00417.46
8.0.300.0030.00718.77
8.0.290.0040.00417.00
8.0.280.0040.00418.38
8.0.270.0000.00817.35
8.0.260.0000.00716.93
8.0.250.0070.00017.09
8.0.240.0040.00417.07
8.0.230.0030.00317.07
8.0.220.0030.00317.09
8.0.210.0000.00817.06
8.0.200.0000.00616.99
8.0.190.0090.00017.14
8.0.180.0080.00017.13
8.0.170.0060.00317.02
8.0.160.0040.00416.97
8.0.150.0040.00417.03
8.0.140.0030.00316.92
8.0.130.0000.00613.46
8.0.120.0000.00716.94
8.0.110.0000.00717.03
8.0.100.0000.00717.05
8.0.90.0040.00417.03
8.0.80.0060.00917.07
8.0.70.0040.00417.07
8.0.60.0040.00417.02
8.0.50.0000.00716.82
8.0.30.0060.01017.19
8.0.20.0080.01217.43
8.0.10.0040.00417.09
8.0.00.0120.00616.81
7.4.330.0050.00015.55
7.4.320.0060.00016.65
7.4.300.0030.00316.75
7.4.290.0070.00016.76
7.4.280.0000.00816.67
7.4.270.0000.00716.76
7.4.260.0000.00716.66
7.4.250.0040.00416.60
7.4.240.0090.00016.66
7.4.230.0040.00416.84
7.4.220.0050.00316.48
7.4.210.0070.00916.75
7.4.200.0030.00316.66
7.4.160.0130.00616.63
7.4.140.0110.00917.86
7.4.130.0160.00916.68
7.4.120.0090.01216.71
7.4.110.0100.00716.66
7.4.100.0030.01316.56
7.4.90.0110.01116.75
7.4.80.0110.01519.39
7.4.70.0090.01216.69
7.4.60.0060.01016.59
7.4.50.0060.00916.52
7.4.40.0170.00716.75
7.4.00.0070.01114.95
7.3.330.0020.00213.39
7.3.320.0030.00313.24
7.3.310.0030.00316.46
7.3.300.0030.00316.44
7.3.290.0030.00316.45
7.3.280.0080.00716.42
7.3.260.0120.00716.62
7.3.240.0100.00816.44
7.3.230.0090.00916.33
7.3.210.0140.00316.46
7.3.200.0030.02016.43
7.3.190.0050.01116.52
7.3.180.0060.01016.58
7.3.170.0070.01316.31
7.3.160.0070.01116.46
7.2.330.0080.01616.70
7.2.320.0100.01016.65
7.2.310.0090.01216.88
7.2.300.0130.01016.49
7.2.290.0070.01016.76
7.2.60.1110.01015.11
7.2.50.1080.00815.14
7.2.40.0860.00415.18
7.2.30.0880.00814.87
7.2.20.0950.00515.22
7.2.10.0770.00815.11
7.2.00.0770.01115.16
7.1.200.0060.00615.69
7.1.170.1130.00813.65
7.1.160.0700.00714.08
7.1.150.0850.00813.97
7.1.140.0660.00714.19
7.1.130.0770.00614.00
7.1.120.0740.00713.89
7.1.110.1420.00414.17
7.1.100.0810.00914.30
7.1.90.1050.00714.09
7.1.80.0890.00514.02
7.1.70.1290.00414.26
7.1.60.1240.00832.12
7.1.50.1270.01532.25
7.1.40.1560.00832.11
7.1.30.1390.01032.09
7.1.20.1450.00632.14
7.1.10.1130.00814.07
7.1.00.1100.00714.06

preferences:
37.91 ms | 403 KiB | 5 Q