3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = "/**\r\n". "* @changelog https://github.com/rectorphp/rector/blob/master/docs/rector_rules_overview.md\r\n". "*/\r\n"; $annotation = '@changelog'; var_dump(extractAnnotationFromClass($s, $annotation)); function extractAnnotationFromClass(string $docComment, string $annotation): ?string { // @see https://regex101.com/r/oYGaWU/1 $pattern = '#' . preg_quote($annotation, '#') . '\s+(?<content>.*?)$#m'; preg_match($pattern, $docComment, $matches); return $matches['content'] ?? null; }

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.0120.00516.77
8.5.80.0030.00717.60
8.5.70.0080.00816.71
8.5.60.0120.00617.03
8.5.50.0110.00716.80
8.5.30.0070.00919.60
8.5.20.0110.00819.51
8.5.10.0110.00716.79
8.5.00.0140.00820.16
8.4.240.0110.01119.94
8.4.230.0120.00921.53
8.4.220.0130.00919.74
8.4.210.0140.00919.80
8.4.180.0120.00919.91
8.4.170.0130.00823.82
8.4.160.0120.00923.77
8.4.150.0070.00616.96
8.4.140.0140.00717.95
8.4.130.0150.00717.91
8.4.120.0130.00720.72
8.4.110.0090.01222.33
8.4.100.0150.00718.05
8.4.90.0140.00718.04
8.4.80.0100.01318.02
8.4.70.0060.00419.57
8.4.60.0060.00318.96
8.4.50.0060.00217.84
8.4.40.0130.00719.65
8.4.30.0040.01418.61
8.4.20.0120.00818.88
8.4.10.0030.00618.15
8.3.320.0070.00218.77
8.3.310.0130.00718.76
8.3.300.0120.00820.91
8.3.290.0040.00720.71
8.3.280.0120.00918.62
8.3.270.0100.01016.69
8.3.260.0130.00616.91
8.3.250.0100.00818.98
8.3.240.0110.00916.79
8.3.230.0150.00616.87
8.3.220.0060.00319.00
8.3.210.0100.00916.57
8.3.200.0110.00916.47
8.3.190.0050.00417.20
8.3.180.0100.01016.83
8.3.170.0040.01516.83
8.3.160.0090.01018.38
8.3.150.0100.00717.25
8.3.140.0000.00816.71
8.3.130.0070.01118.74
8.3.120.0040.01518.78
8.3.110.0080.00016.89
8.3.100.0070.00424.06
8.3.90.0040.00426.77
8.3.80.0090.00019.36
8.3.70.0070.00716.75
8.3.60.0110.00716.75
8.3.50.0140.00818.28
8.3.40.0090.00618.74
8.3.30.0110.00719.02
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.320.0080.01218.20
8.2.310.0080.01218.24
8.2.300.0130.00918.76
8.2.290.0110.00820.51
8.2.280.0070.00318.74
8.2.270.0130.00716.68
8.2.260.0060.00318.93
8.2.250.0120.00317.05
8.2.240.0070.00718.88
8.2.230.0100.00020.94
8.2.220.0060.01237.54
8.2.210.0080.00026.77
8.2.200.0090.00018.88
8.2.190.0030.01416.88
8.2.180.0090.00625.92
8.2.170.0120.00919.26
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00326.35
8.2.110.0030.00621.16
8.2.100.0040.00718.22
8.2.90.0040.00419.21
8.2.80.0000.00918.04
8.2.70.0030.00617.75
8.2.60.0000.00818.05
8.2.50.0060.00318.05
8.2.40.0050.00218.16
8.2.30.0040.00418.28
8.2.20.0040.00418.16
8.2.10.0000.00719.39
8.2.00.0050.00219.21
8.1.340.0050.00421.86
8.1.330.0100.00916.62
8.1.320.0030.00616.38
8.1.310.0070.00716.93
8.1.300.0060.00316.68
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.01021.17
8.1.230.0030.00717.64
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00817.47
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0030.00518.77
8.1.160.0020.00519.06
8.1.150.0060.00318.95
8.1.140.0070.00018.93
8.1.130.0070.00020.22
8.1.120.0070.00417.52
8.1.110.0040.00417.49
8.1.100.0040.00417.64
8.1.90.0040.00417.57
8.1.80.0030.00617.64
8.1.70.0040.00417.52
8.1.60.0030.00617.64
8.1.50.0040.00417.57
8.1.40.0030.00617.65
8.1.30.0060.00317.81
8.1.20.0080.00017.80
8.1.10.0000.00717.70
8.1.00.0030.00917.66
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00720.17
8.0.270.0070.00018.16
8.0.260.0030.00318.46
8.0.250.0040.00417.08
8.0.240.0000.00717.04
8.0.230.0030.00316.98
8.0.220.0020.00516.91
8.0.210.0030.00317.08
8.0.200.0030.00317.08
8.0.190.0020.00517.13
8.0.180.0080.00016.96
8.0.170.0000.00817.06
8.0.160.0090.00317.06
8.0.150.0030.00616.88
8.0.140.0030.00517.01
8.0.130.0060.00013.42
8.0.120.0060.00316.99
8.0.110.0070.00017.07
8.0.100.0070.00016.84
8.0.90.0040.00416.91
8.0.80.0050.01417.02
8.0.70.0070.00016.93
8.0.60.0080.00016.86
8.0.50.0050.00316.87
8.0.30.0050.01817.03
8.0.20.0120.00617.04
8.0.10.0040.01117.04
8.0.00.0140.00917.10
7.4.330.0000.00515.55
7.4.320.0030.00316.73
7.4.300.0000.00816.73
7.4.290.0040.00416.76
7.4.280.0050.00316.73
7.4.270.0000.00716.88
7.4.260.0000.00513.52
7.4.250.0000.00816.74
7.4.240.0040.00416.81
7.4.230.0040.00416.86
7.4.220.0020.00616.86
7.4.210.0010.01316.79
7.4.200.0040.00416.85
7.4.160.0120.00816.87
7.4.150.0110.00416.81
7.4.140.0100.00416.76
7.4.130.0080.01116.80
7.4.120.0120.00516.70
7.4.110.0120.00516.77
7.4.100.0080.00816.84
7.4.90.0100.00716.77
7.4.80.0060.00916.68
7.4.70.0070.01016.71
7.4.60.0010.01316.73
7.4.50.0090.01016.74
7.4.40.0080.00816.67
7.4.30.0160.00516.84
7.4.20.0090.00716.66
7.4.10.0080.00816.70
7.4.00.0180.01316.65
7.3.330.0000.00716.34
7.3.320.0030.00313.52
7.3.310.0040.00416.39
7.3.300.0030.00316.34
7.3.290.0090.00616.50
7.3.280.0060.01116.48
7.3.270.0120.00316.51
7.3.260.0100.00516.49
7.3.250.0040.01216.51
7.3.240.0130.00316.52
7.3.230.0090.00516.47
7.3.220.0090.01116.49
7.3.210.0080.00616.42
7.3.200.0100.00716.53
7.3.190.0110.00516.48
7.3.180.0140.00616.49
7.3.170.0060.01216.44
7.3.160.0080.01216.46
7.3.150.0060.01016.44
7.3.140.0110.00516.45
7.3.130.0080.00916.46
7.3.120.0110.00716.47
7.3.110.0080.00916.40
7.3.100.0070.01016.42
7.3.90.0080.00716.71
7.3.80.0070.01016.47
7.3.70.0100.00616.50
7.3.60.0050.01116.56
7.3.50.0020.01416.53
7.3.40.0110.00616.55
7.3.30.0080.00916.50
7.3.20.0080.00816.59
7.3.10.0060.01716.53
7.3.00.0050.01216.58

preferences:
52.2 ms | 1436 KiB | 5 Q