3v4l.org

run code in 300+ PHP versions simultaneously
<?php class S { public function __toString() { return '/a/'; } } var_dump(preg_match(new S(), 'a'));

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.20.0140.00717.97
8.4.10.0130.00720.46
8.3.150.0190.00019.20
8.3.140.0080.00020.84
8.3.130.0060.00318.63
8.3.120.0060.00320.84
8.3.110.0000.01520.94
8.3.100.0030.00516.66
8.3.90.0180.00026.77
8.3.80.0030.00616.63
8.3.70.0090.00916.58
8.3.60.0130.00718.43
8.3.50.0060.01223.67
8.3.40.0070.00718.54
8.3.30.0090.00918.85
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.270.0030.00616.84
8.2.260.0120.00317.17
8.2.250.0110.00716.71
8.2.240.0040.00419.18
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0060.00616.75
8.2.190.0120.00616.63
8.2.180.0070.01125.92
8.2.170.0090.00618.85
8.2.160.0110.00322.96
8.2.150.0030.00625.66
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0090.00026.35
8.2.110.0070.00322.38
8.2.100.0030.01019.57
8.2.90.0040.00418.03
8.2.80.0040.00419.00
8.2.70.0040.00817.88
8.2.60.0060.00317.59
8.2.50.0030.00518.05
8.2.40.0000.00818.22
8.2.30.0040.00418.14
8.2.20.0020.00518.10
8.2.10.0000.00719.16
8.2.00.0050.00219.25
8.1.310.0080.00016.63
8.1.300.0170.00018.22
8.1.290.0040.00430.84
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0110.00022.69
8.1.220.0000.01017.79
8.1.210.0080.00018.90
8.1.200.0040.00417.48
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00719.03
8.1.160.0030.00518.76
8.1.150.0070.00018.80
8.1.140.0040.00418.80
8.1.130.0040.00417.53
8.1.120.0030.00517.54
8.1.110.0000.00717.51
8.1.100.0000.00817.42
8.1.90.0050.00217.51
8.1.80.0080.00017.55
8.1.70.0070.00017.52
8.1.60.0050.00317.59
8.1.50.0050.00317.59
8.1.40.0040.00417.65
8.1.30.0000.00817.73
8.1.20.0000.00817.76
8.1.10.0000.00817.64
8.1.00.0040.00417.52
8.0.300.0050.00220.16
8.0.290.0000.00816.88
8.0.280.0070.00018.46
8.0.270.0030.00318.11
8.0.260.0000.00716.83
8.0.250.0000.01017.01
8.0.240.0070.00017.12
8.0.230.0030.00516.91
8.0.220.0000.00716.84
8.0.210.0050.00317.00
8.0.200.0040.00416.99
8.0.190.0020.00517.03
8.0.180.0000.00716.88
8.0.170.0040.00416.99
8.0.160.0000.00816.96
8.0.150.0000.00816.96
8.0.140.0070.00316.88
8.0.130.0030.00313.42
8.0.120.0050.00316.84
8.0.110.0040.00416.86
8.0.100.0000.00716.88
8.0.90.0040.00416.84
8.0.80.0070.00716.93
8.0.70.0070.00017.03
8.0.60.0000.00817.02
8.0.50.0040.00416.96
8.0.30.0120.00417.32
8.0.20.0040.01517.34
8.0.10.0040.00416.99
8.0.00.0170.00917.86
7.4.330.0030.00315.55
7.4.320.0000.00716.60
7.4.300.0060.00016.51
7.4.290.0070.00016.68
7.4.280.0030.00416.68
7.4.270.0040.00416.70
7.4.260.0030.00313.43
7.4.250.0000.00716.65
7.4.240.0000.00816.60
7.4.230.0000.00716.70
7.4.220.0000.00816.55
7.4.210.0030.01316.73
7.4.200.0040.00416.83
7.4.140.0120.00717.86
7.4.130.0190.01217.86
7.4.120.0250.01117.86
7.4.110.0260.00717.86
7.4.100.0220.00917.86
7.4.90.0180.01317.86
7.4.80.0280.00717.86
7.4.70.0280.01117.86
7.4.60.0180.01117.86
7.4.50.0240.01217.86
7.4.40.0320.00317.86
7.4.30.0210.01117.86
7.4.20.0250.00817.86
7.4.10.0240.01017.86
7.4.00.0100.01117.86
7.3.330.0000.00716.36
7.3.320.0000.00613.34
7.3.310.0000.00716.38
7.3.300.0030.00316.21
7.3.290.0030.01116.44
7.3.260.0130.01717.86
7.3.250.0250.00617.86
7.3.240.0270.01017.86
7.3.230.0300.00017.86
7.3.220.0260.00817.86
7.3.210.0220.01117.86
7.3.200.0270.00617.86
7.3.190.0270.01217.86
7.3.180.0290.00717.86
7.3.170.0290.00617.86
7.3.160.0270.00517.86
7.3.150.0240.00717.86
7.3.140.0240.01017.86
7.3.130.0290.00717.86
7.3.120.0320.00017.86
7.3.110.0180.01617.86
7.3.100.0330.00017.86
7.3.90.0260.00617.86
7.3.80.0280.00617.86
7.3.70.0230.01217.86
7.3.60.0190.01017.86
7.3.50.0280.01017.86
7.3.40.0240.00717.86
7.3.30.0270.00417.86
7.3.20.0270.01217.86
7.3.10.0460.01617.86
7.3.00.0300.00317.86

preferences:
29.76 ms | 403 KiB | 5 Q