3v4l.org

run code in 300+ PHP versions simultaneously
<?php $selfTable = 'songs'; $relTable = 'artists'; $strings = array( 'id', 'artists.name', '$artist.real_name', '$title' ); foreach($strings as $string) { echo preg_replace_callback('#((?P<both>[^\$]+)|\$(?P<field>[\w]+)|\$(?P<table>[\w]+)\.(?P<field>[\w]+))#', function($match) { print_r($match); }, $string); }

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.0090.01218.68
8.3.50.0130.00321.21
8.3.40.0110.00418.96
8.3.30.0070.00720.29
8.3.20.0040.00420.16
8.3.10.0000.00821.98
8.3.00.0080.00022.15
8.2.180.0070.01516.75
8.2.170.0090.00622.96
8.2.160.0100.00322.30
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00517.63
8.2.110.0070.00420.22
8.2.100.0090.00319.64
8.2.90.0040.00419.22
8.2.80.0000.00819.31
8.2.70.0040.00417.63
8.2.60.0000.00918.04
8.2.50.0030.00618.07
8.2.40.0040.00418.21
8.2.30.0000.00719.48
8.2.20.0070.00017.69
8.2.10.0000.00717.81
8.2.00.0040.00417.74
8.1.280.0060.00925.92
8.1.270.0080.00021.91
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0070.00320.74
8.1.230.0090.00322.12
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0110.00017.23
8.1.190.0000.00717.40
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00418.82
8.1.150.0070.00018.55
8.1.140.0000.00717.37
8.1.130.0030.00317.87
8.1.120.0000.00717.44
8.1.110.0050.00317.48
8.1.100.0080.00017.46
8.1.90.0040.00417.45
8.1.80.0040.00417.54
8.1.70.0030.00317.47
8.1.60.0030.00617.59
8.1.50.0030.00517.43
8.1.40.0040.00417.54
8.1.30.0050.00317.54
8.1.20.0000.00917.68
8.1.10.0040.00417.48
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0070.00017.03
8.0.280.0070.00018.40
8.0.270.0030.00317.27
8.0.260.0000.00716.77
8.0.250.0000.00717.07
8.0.240.0050.00317.03
8.0.230.0070.00016.93
8.0.220.0040.00416.95
8.0.210.0030.00316.94
8.0.200.0000.00616.91
8.0.190.0050.00317.02
8.0.180.0070.00016.91
8.0.170.0000.00816.95
8.0.160.0000.00716.97
8.0.150.0040.00416.89
8.0.140.0060.00316.90
8.0.130.0000.00513.40
8.0.120.0000.00816.95
8.0.110.0040.00416.91
8.0.100.0040.00417.05
8.0.90.0000.00817.00
8.0.80.0040.01116.91
8.0.70.0080.00016.95
8.0.60.0000.00816.96
8.0.50.0040.00417.03
8.0.30.0150.00517.07
8.0.20.0070.01117.41
8.0.10.0040.00417.03
8.0.00.0140.00316.77
7.4.330.0050.00016.79
7.4.320.0060.00016.56
7.4.300.0030.00316.49
7.4.290.0030.00316.69
7.4.280.0040.00416.66
7.4.270.0070.00016.65
7.4.260.0050.00013.32
7.4.250.0000.00716.58
7.4.240.0040.00416.54
7.4.230.0050.00216.47
7.4.220.0090.00916.59
7.4.210.0050.01116.66
7.4.200.0000.00716.64
7.4.190.0040.00416.83
7.4.160.0070.01116.54
7.4.150.0090.00917.40
7.4.140.0080.01117.86
7.4.130.0080.01616.59
7.4.120.0110.00816.47
7.4.110.0080.00816.35
7.4.100.0070.01016.41
7.4.90.0110.00716.71
7.4.80.0130.01019.39
7.4.70.0110.00516.56
7.4.60.0100.01016.80
7.4.50.0090.00016.49
7.4.40.0140.00322.77
7.4.30.0050.01516.55
7.4.00.0000.01615.11
7.3.330.0020.00213.42
7.3.320.0030.00313.19
7.3.310.0030.00316.47
7.3.300.0050.00216.34
7.3.290.0030.01116.36
7.3.280.0100.00716.40
7.3.270.0040.01317.40
7.3.260.0140.00618.24
7.3.250.0080.00916.54
7.3.240.0150.00316.56
7.3.230.0080.01416.68
7.3.210.0060.01016.64
7.3.200.0070.01019.39
7.3.190.0030.01416.46
7.3.180.0060.00916.62
7.3.170.0060.01016.55
7.3.160.0110.00516.63
7.3.120.0030.01314.94
7.3.10.0130.00315.88
7.3.00.0140.00816.30
7.2.330.0000.01816.61
7.2.320.0070.01016.48
7.2.310.0110.00716.66
7.2.300.0100.01316.52
7.2.290.0120.00616.67
7.2.130.0110.01016.71
7.2.120.0190.00816.83
7.2.110.0120.00916.77
7.2.100.0110.00416.74
7.2.90.0090.00716.81
7.2.80.0070.00716.59
7.2.70.0050.01016.62
7.2.60.0030.01116.79
7.2.50.0050.00716.98
7.2.40.0080.00617.01
7.2.30.0040.01016.84
7.2.20.0080.01016.86
7.2.10.0080.00816.85
7.2.00.0050.00817.65
7.1.250.0160.01115.48
7.1.240.0000.01115.87
7.1.230.0040.01115.72
7.1.220.0000.01115.84
7.1.210.0060.00915.95
7.1.200.0070.00415.80
7.1.190.0140.00015.82
7.1.180.0060.00315.68
7.1.170.0070.00715.89
7.1.160.0030.00715.92
7.1.150.0030.00715.57
7.1.140.0090.00315.79
7.1.130.0040.00415.63
7.1.120.0090.00615.98
7.1.110.0070.00316.00
7.1.100.0020.00917.16
7.1.90.0060.00615.59
7.1.80.0040.01215.62
7.1.70.0070.00416.43
7.1.60.0080.01017.51
7.1.50.0090.01016.38
7.1.40.0070.00715.98
7.1.30.0030.00915.47
7.1.20.0040.00715.53
7.1.10.0120.00615.86
7.1.00.0090.01518.90
7.0.330.0080.00315.34
7.0.320.0080.00315.09
7.0.310.0080.00315.66
7.0.300.0000.01015.54
7.0.290.0030.00615.38
7.0.280.0030.01115.17
7.0.270.0030.01315.45
7.0.260.0040.01115.21
7.0.250.0040.01215.54
7.0.240.0040.01115.70
7.0.230.0040.00815.37
7.0.220.0070.00315.24
7.0.210.0080.00815.64
7.0.200.0050.00416.06
7.0.190.0030.00715.63
7.0.180.0080.00315.55
7.0.170.0000.01415.64
7.0.160.0070.00415.55
7.0.150.0000.01115.42
7.0.140.0050.04518.86
7.0.130.0000.01315.68
7.0.120.0060.00915.39
7.0.110.0000.01315.08
7.0.100.0050.03917.67
7.0.90.0030.04317.59
7.0.80.0100.03017.62
7.0.70.0130.03717.48
7.0.60.0100.03717.60
7.0.50.0100.03517.87
7.0.40.0160.03316.66
7.0.30.0070.02716.91
7.0.20.0070.04416.79
7.0.10.0070.02516.80
7.0.00.0050.04516.86
5.6.380.0120.00314.67
5.6.370.0000.01214.06
5.6.360.0000.01114.14
5.6.350.0030.00914.13
5.6.340.0040.00814.30
5.6.330.0120.00314.52
5.6.320.0000.01214.70
5.6.310.0030.01014.54
5.6.300.0060.00914.20
5.6.290.0000.01414.35
5.6.280.0070.03717.48
5.6.270.0060.01214.07
5.6.260.0040.01214.52
5.6.250.0060.02817.39
5.6.240.0070.04317.38
5.6.230.0100.04017.40
5.6.220.0040.03417.35
5.6.210.0050.02417.30
5.6.200.0090.02917.71
5.6.190.0050.04217.59
5.6.180.0070.04417.57
5.6.170.0050.04717.70
5.6.160.0070.04417.63
5.6.150.0050.04517.63
5.6.140.0020.05217.74
5.6.130.0080.04317.63
5.6.120.0050.04917.74
5.6.110.0100.04317.68
5.6.100.0030.04817.75
5.6.90.0070.04417.71
5.6.80.0120.02317.43
5.6.70.0090.04217.44
5.6.60.0080.03217.42
5.6.50.0100.04217.23
5.6.40.0070.04417.30
5.6.30.0070.04317.40
5.6.20.0000.04817.43
5.6.10.0050.04217.37
5.6.00.0100.04017.24
5.5.380.0080.02415.87
5.5.370.0050.04015.77
5.5.360.0030.02515.90
5.5.350.0050.04315.85
5.5.340.0030.04016.06
5.5.330.0080.03916.04
5.5.320.0080.04216.04
5.5.310.0080.04016.00
5.5.300.0030.03316.01
5.5.290.0020.04816.09
5.5.280.0070.03216.06
5.5.270.0090.03615.82
5.5.260.0070.04415.96
5.5.250.0070.04415.82
5.5.240.0070.04215.74
5.5.230.0100.04115.69
5.5.220.0080.03615.64
5.5.210.0070.04215.68
5.5.200.0090.02815.65
5.5.190.0050.02715.64
5.5.180.0030.03615.59
5.5.170.0040.00411.04
5.5.160.0080.04215.49
5.5.150.0080.04015.53
5.5.140.0090.04115.67
5.5.130.0020.04715.69
5.5.120.0080.03315.64
5.5.110.0050.03915.73
5.5.100.0030.03315.65
5.5.90.0080.02915.74
5.5.80.0090.03415.56
5.5.70.0090.02415.58
5.5.60.0060.02615.54
5.5.50.0030.04215.41
5.5.40.0030.04415.51
5.5.30.0050.04415.61
5.5.20.0080.03115.47
5.5.10.0050.04215.53
5.5.00.0070.03015.55
5.4.450.0080.04314.92
5.4.440.0070.04415.29
5.4.430.0050.04215.24
5.4.420.0080.04215.12
5.4.410.0040.04315.06
5.4.400.0040.04014.96
5.4.390.0120.03714.92
5.4.380.0100.03815.00
5.4.370.0120.03514.91
5.4.360.0100.03515.16
5.4.350.0000.03215.06
5.4.340.0070.04314.90
5.4.330.0030.00510.89
5.4.320.0070.04014.90
5.4.310.0080.04015.10
5.4.300.0050.03614.91
5.4.290.0030.04215.15
5.4.280.0100.03815.18
5.4.270.0080.03614.87
5.4.260.0050.04014.84
5.4.250.0030.04414.95
5.4.240.0070.04014.71
5.4.230.0040.03915.02
5.4.220.0130.03615.07
5.4.210.0020.02815.13
5.4.200.0020.04214.99
5.4.190.0070.04214.85
5.4.180.0070.04015.01
5.4.170.0050.03914.92
5.4.160.0070.03314.96
5.4.150.0080.03414.92
5.4.140.0080.04013.59
5.4.130.0030.04113.58
5.4.120.0060.04013.51
5.4.110.0060.03013.68
5.4.100.0070.04113.55
5.4.90.0070.04013.77
5.4.80.0080.03913.60
5.4.70.0100.04013.57
5.4.60.0080.03913.77
5.4.50.0120.03213.51
5.4.40.0130.03713.73
5.4.30.0030.02513.73
5.4.20.0080.02013.73
5.4.10.0060.04313.66
5.4.00.0060.03613.38
5.3.290.0050.04112.60
5.3.280.0080.03812.58
5.3.270.0030.03812.60
5.3.260.0020.03812.64
5.3.250.0070.03712.72
5.3.240.0090.03912.58
5.3.230.0050.04112.67
5.3.220.0050.02812.41
5.3.210.0070.04012.60
5.3.200.0080.02812.57
5.3.190.0070.03512.64
5.3.180.0050.04012.70
5.3.170.0060.04312.71
5.3.160.0050.04212.63
5.3.150.0080.03912.70
5.3.140.0070.04512.65
5.3.130.0050.03512.57
5.3.120.0000.04812.64
5.3.110.0100.03312.64
5.3.100.0080.03312.34
5.3.90.0040.03712.32
5.3.80.0110.03412.20
5.3.70.0060.03312.23
5.3.60.0050.02012.25
5.3.50.0100.04212.28
5.3.40.0020.04212.18
5.3.30.0020.04212.21
5.3.20.0110.03312.18
5.3.10.0050.03812.00
5.3.00.0030.04011.94
5.2.170.0030.03311.29
5.2.160.0020.03711.29
5.2.150.0070.03011.29
5.2.140.0060.03411.29
5.2.130.0070.03011.29
5.2.120.0030.01911.29
5.2.110.0080.03011.29
5.2.100.0080.02911.29
5.2.90.0050.03411.29
5.2.80.0050.02311.29
5.2.70.0030.02211.29
5.2.60.0050.03011.29
5.2.50.0030.02811.29
5.2.40.0050.02011.29
5.2.30.0070.03411.29
5.2.20.0030.02011.29
5.2.10.0040.03011.29
5.2.00.0060.03111.29
5.1.60.0030.02811.29
5.1.50.0050.02811.29
5.1.40.0050.02711.29
5.1.30.0060.02611.29
5.1.20.0030.03011.29
5.1.10.0070.02711.29
5.1.00.0060.02711.29
5.0.50.0050.02211.29
5.0.40.0050.02211.29
5.0.30.0060.03211.29
5.0.20.0010.02311.29
5.0.10.0090.01811.29
5.0.00.0050.03211.29
4.4.90.0040.02011.29
4.4.80.0050.01811.29
4.4.70.0040.01811.29
4.4.60.0020.01811.29
4.4.50.0040.01911.29
4.4.40.0030.02811.29
4.4.30.0040.01711.29
4.4.20.0000.02011.29
4.4.10.0000.02011.29
4.4.00.0040.02711.29
4.3.110.0030.01711.29
4.3.100.0060.01511.29
4.3.90.0000.01311.29
4.3.80.0040.02711.29
4.3.70.0000.02011.29
4.3.60.0030.01011.29
4.3.50.0020.02111.29
4.3.40.0030.03011.29
4.3.30.0020.02011.29
4.3.20.0050.01311.29
4.3.10.0010.02111.29
4.3.00.0000.02011.29

preferences:
51.52 ms | 401 KiB | 5 Q