3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOT <?php declare(strict_types=1); namespace %namespace% class %classname% { %attributes% %methods% } EOT; preg_match_all('/\%(?P<name>\w+)\%/', $str, $data); $str = str_replace('%classname%', 'test', $str); var_dump($str);

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.3.60.0070.00718.27
8.3.50.0070.01016.64
8.3.40.0090.00618.92
8.3.30.0120.00318.92
8.3.20.0000.00720.34
8.3.10.0040.00421.70
8.3.00.0050.00319.50
8.2.180.0070.01116.61
8.2.170.0100.00622.96
8.2.160.0070.01120.35
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0060.00321.16
8.2.120.0000.00826.35
8.2.110.0100.00319.31
8.2.100.0040.00717.86
8.2.90.0060.00319.05
8.2.80.0070.00017.97
8.2.70.0060.00317.75
8.2.60.0040.00417.88
8.2.50.0030.00518.10
8.2.40.0040.00420.61
8.2.30.0060.00320.99
8.2.20.0070.00018.01
8.2.10.0000.00818.06
8.2.00.0000.00718.01
8.1.280.0100.01025.92
8.1.270.0000.00823.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00024.03
8.1.230.0100.00317.51
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00920.43
8.1.160.0060.00319.02
8.1.150.0080.00018.80
8.1.140.0040.00419.49
8.1.130.0000.00818.76
8.1.120.0040.00417.51
8.1.110.0030.00517.60
8.1.100.0000.00717.43
8.1.90.0080.00017.42
8.1.80.0030.00317.43
8.1.70.0000.00817.57
8.1.60.0000.00817.70
8.1.50.0040.00417.65
8.1.40.0030.00617.57
8.1.30.0050.00317.59
8.1.20.0060.00617.73
8.1.10.0030.00617.63
8.1.00.0050.00217.48
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.29
8.0.270.0000.00717.13
8.0.260.0030.00316.96
8.0.250.0030.00316.99
8.0.240.0080.00017.14
8.0.230.0040.00717.07
8.0.220.0000.00617.03
8.0.210.0000.00717.03
8.0.200.0030.00317.00
8.0.190.0070.00317.08
8.0.180.0050.00317.06
8.0.170.0000.00817.08
8.0.160.0040.00416.96
8.0.150.0040.00416.95
8.0.140.0070.00016.93
8.0.130.0000.00513.47
8.0.120.0040.00416.88
8.0.110.0000.00816.89
8.0.100.0000.00716.90
8.0.90.0040.00417.06
8.0.80.0090.01317.00
8.0.70.0000.00716.86
8.0.60.0000.00717.10
8.0.50.0000.00717.09
8.0.30.0040.01317.25
8.0.20.0130.00517.40
8.0.10.0040.00417.11
8.0.00.0070.01016.75
7.4.330.0050.00015.55
7.4.320.0000.00616.66
7.4.300.0040.00416.73
7.4.290.0070.00416.56
7.4.280.0030.00616.64
7.4.270.0000.00716.74
7.4.260.0030.00513.44
7.4.250.0060.00316.58
7.4.240.0040.00416.61
7.4.230.0050.00216.75
7.4.220.0080.01116.54
7.4.210.0100.00316.74
7.4.200.0000.00716.60
7.4.160.0100.00616.80
7.4.150.0230.02617.40
7.4.140.0170.00317.86
7.4.130.0080.01216.66
7.4.120.0130.00916.56
7.4.110.0130.00616.58
7.4.100.0030.01316.51
7.4.90.0130.00316.69
7.4.80.0200.00319.39
7.4.70.0110.00516.52
7.4.60.0100.00716.55
7.4.50.0060.00916.35
7.4.40.0140.00716.52
7.4.30.0120.00416.67
7.4.10.0090.00614.92
7.4.00.0040.01014.96
7.3.330.0050.00013.08
7.3.320.0020.00313.14
7.3.310.0030.00416.49
7.3.300.0070.00016.38
7.3.290.0070.00816.31
7.3.280.0090.00816.34
7.3.270.0070.01017.40
7.3.260.0090.00816.55
7.3.250.0120.00516.41
7.3.240.0110.00616.43
7.3.230.0110.01116.60
7.3.210.0100.00616.39
7.3.200.0090.01316.51
7.3.190.0030.01716.23
7.3.180.0060.01016.36
7.3.170.0060.01016.52
7.3.160.0080.00816.46
7.3.130.0110.00614.95
7.3.120.0070.01114.76
7.3.110.0100.00615.05
7.3.100.0040.01115.04
7.3.90.0070.01014.59
7.3.80.0000.01515.02
7.3.70.0100.00314.73
7.3.60.0080.01115.03
7.3.50.0140.00414.95
7.3.40.0080.00815.02
7.3.30.0080.00514.52
7.3.20.0110.00416.86
7.3.10.0030.00716.55
7.3.00.0060.01016.60
7.2.330.0090.01216.77
7.2.320.0060.01016.58
7.2.310.0040.01316.64
7.2.300.0100.00716.73
7.2.290.0100.00816.52
7.2.260.0060.00615.05
7.2.250.0000.01815.13
7.2.240.0100.00715.05
7.2.230.0140.00714.94
7.2.220.0000.01615.17
7.2.210.0090.00615.28
7.2.200.0040.01215.21
7.2.190.0100.00314.91
7.2.180.0000.01215.18
7.2.170.0040.01115.12
7.2.160.0070.00714.95
7.2.150.0070.00716.80
7.2.140.0000.01416.86
7.2.130.0070.00716.70
7.2.120.0030.00917.04
7.2.110.0090.00916.80
7.2.100.0030.01416.86
7.2.90.0110.00716.89
7.2.80.0160.00316.69
7.2.70.0060.01016.79
7.2.60.0050.00916.85
7.2.50.0100.00616.79
7.2.40.0070.01017.08
7.2.30.0060.00916.89
7.2.20.0070.01017.13
7.2.10.0070.01116.96
7.2.00.0080.00718.04
7.1.330.0000.01415.91
7.1.320.0040.01115.79
7.1.310.0030.00716.07
7.1.300.0000.01915.67
7.1.290.0040.00716.04
7.1.280.0070.00715.67
7.1.270.0080.00415.90
7.1.260.0030.01015.64
7.1.250.0110.00415.96
7.1.240.0120.00316.07
7.1.230.0040.00815.86
7.1.220.0070.00715.57
7.1.210.0070.00715.91
7.1.200.0030.01115.89
7.1.190.0000.01215.93
7.1.180.0110.00315.96
7.1.170.0060.00616.02
7.1.160.0090.00015.91
7.1.150.0060.00616.06
7.1.140.0070.00716.04
7.1.130.0030.00615.85
7.1.120.0090.00616.05
7.1.110.0040.01215.96
7.1.100.0030.00817.12
7.1.90.0000.01415.74
7.1.80.0030.01015.95
7.1.70.0070.00416.67
7.1.60.0130.00625.54
7.1.50.0110.00925.44
7.1.40.0070.01125.13
7.1.30.0070.01225.18
7.1.20.0090.01125.33
7.1.10.0040.00916.28
7.1.00.0030.00816.32
7.0.330.0060.00615.45
7.0.320.0070.00715.78
7.0.310.0070.01015.18
7.0.300.0080.00315.36
7.0.290.0090.00015.31
7.0.280.0070.00715.73
7.0.270.0040.00815.58
7.0.260.0090.00915.48
7.0.250.0040.00415.31
7.0.240.0060.00615.61
7.0.230.0070.00715.65
7.0.220.0050.00315.61
7.0.210.0030.01015.32
7.0.200.0050.00816.07
7.0.190.0090.00416.06
7.0.180.0080.00515.92
7.0.170.0060.00415.95
7.0.160.0080.00615.97
7.0.150.0060.00615.90
7.0.140.0030.01015.85
7.0.130.0040.00816.11
7.0.120.0050.01016.12
7.0.110.0020.00815.83
7.0.100.0060.00815.94
7.0.90.0030.00915.97
7.0.80.0050.00815.90
7.0.70.0080.00515.98
7.0.60.0010.00915.99
7.0.50.0090.00216.06
7.0.40.0060.00614.99
7.0.30.0040.00815.14
7.0.20.0060.00814.96
7.0.10.0100.00214.97
7.0.00.0010.01014.92
5.6.400.0030.00714.07
5.6.390.0030.01014.54
5.6.380.0030.00614.27
5.6.370.0040.01414.46
5.6.360.0040.00814.20
5.6.350.0080.00614.32
5.6.340.0000.01414.55
5.6.330.0000.01214.00
5.6.320.0030.00914.20
5.6.310.0070.00714.58
5.6.300.0060.00614.47
5.6.290.0050.00514.05
5.6.280.0000.01614.26
5.6.270.0090.00314.36
5.6.260.0000.01514.52
5.6.250.0130.00614.49
5.6.240.0080.00614.13
5.6.230.0030.01014.23
5.6.220.0060.00614.12
5.6.210.0090.00314.27
5.6.200.0070.00714.09
5.6.190.0060.00914.32
5.6.180.0060.01014.27
5.6.170.0070.00314.06
5.6.160.0080.00314.39
5.6.150.0060.00614.12
5.6.140.0060.00614.06
5.6.130.0030.00914.34
5.6.120.0030.00914.32
5.6.110.0030.00614.36
5.6.100.0040.00414.11
5.6.90.0000.00914.34
5.6.80.0090.00314.19
5.6.70.0000.01314.16
5.6.60.0100.00313.93
5.6.50.0110.00414.07
5.6.40.0110.00313.93
5.6.30.0120.00314.32
5.6.20.0090.00314.26
5.6.10.0090.00414.39
5.6.00.0030.00913.92

preferences:
86.03 ms | 401 KiB | 5 Q