3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ElasticSearchQuery extends SimpleXMLElement { public function __toString() { return json_encode($this); } } $query = new ElasticSearchQuery('<root />'); $query->query->filtered->filter->term = 'foo'; echo $query;

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.40.0030.01318.91
8.3.30.0090.00619.34
8.3.20.0030.00620.59
8.3.10.0090.00020.66
8.3.00.0040.00419.50
8.2.170.0070.00722.96
8.2.160.0060.01320.60
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.15
8.2.110.0000.00919.64
8.2.100.0080.00418.16
8.2.90.0040.00419.46
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0090.00018.18
8.2.50.0000.00818.18
8.2.40.0000.00820.67
8.2.30.0000.00819.55
8.2.20.0040.00417.84
8.2.10.0040.00418.13
8.2.00.0000.00817.89
8.1.270.0080.00024.09
8.1.260.0060.00326.35
8.1.250.0060.00928.09
8.1.240.0060.00322.51
8.1.230.0030.00721.01
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0040.00417.60
8.1.190.0000.00817.48
8.1.180.0080.00018.10
8.1.170.0040.00418.64
8.1.160.0050.00222.21
8.1.150.0080.00318.97
8.1.140.0080.00017.53
8.1.130.0000.00717.86
8.1.120.0070.00017.67
8.1.110.0070.00017.55
8.1.100.0000.00717.52
8.1.90.0070.00017.55
8.1.80.0030.00517.70
8.1.70.0000.00717.49
8.1.60.0080.00017.70
8.1.50.0050.00317.60
8.1.40.0050.00317.67
8.1.30.0030.00517.70
8.1.20.0070.00017.74
8.1.10.0000.00717.69
8.1.00.0000.00817.76
8.0.300.0040.00420.22
8.0.290.0080.00016.88
8.0.280.0070.00018.46
8.0.270.0040.00417.35
8.0.260.0030.00317.45
8.0.250.0070.00017.05
8.0.240.0040.00417.05
8.0.230.0050.00317.09
8.0.220.0050.00217.04
8.0.210.0070.00016.98
8.0.200.0000.00717.14
8.0.190.0050.00317.07
8.0.180.0040.00417.13
8.0.170.0070.00017.10
8.0.160.0030.00517.00
8.0.150.0040.00416.98
8.0.140.0070.00017.04
8.0.130.0050.00013.46
8.0.120.0070.00017.07
8.0.110.0000.00716.97
8.0.100.0080.00017.01
8.0.90.0000.00817.13
8.0.80.0040.01117.07
8.0.70.0040.00417.12
8.0.60.0000.00717.15
8.0.50.0040.00417.12
8.0.30.0140.00817.17
8.0.20.0160.00417.46
8.0.10.0020.00517.22
8.0.00.0080.01116.99
7.4.330.0050.00015.24
7.4.320.0000.00616.61
7.4.300.0070.00016.71
7.4.290.0000.00816.79
7.4.280.0040.00416.72
7.4.270.0030.00316.80
7.4.260.0000.00716.61
7.4.250.0000.00716.64
7.4.240.0000.00716.62
7.4.230.0040.00416.63
7.4.220.0070.01116.80
7.4.210.0070.00716.74
7.4.200.0030.00316.54
7.4.160.0180.00016.64
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0100.00816.75
7.4.120.0120.00916.76
7.4.110.0160.00016.80
7.4.100.0140.00316.52
7.4.90.0080.01116.53
7.4.80.0070.01016.81
7.4.70.0110.00516.43
7.4.60.0060.01116.62
7.4.50.0040.00416.60
7.4.40.0120.00616.61
7.4.30.0040.01116.43
7.4.00.0080.00815.24
7.3.330.0050.00213.42
7.3.320.0000.00513.52
7.3.310.0000.00716.59
7.3.300.0060.00016.41
7.3.290.0030.01516.50
7.3.280.0060.00816.51
7.3.270.0000.01717.40
7.3.260.0030.01316.77
7.3.250.0120.00616.48
7.3.240.0130.00316.56
7.3.230.0090.00816.49
7.3.210.0090.00616.67
7.3.200.0100.00719.39
7.3.190.0090.00916.62
7.3.180.0100.00616.40
7.3.170.0130.00916.54
7.3.160.0100.00616.70
7.3.00.0110.00416.61
7.2.330.0130.00316.81
7.2.320.0100.01016.52
7.2.310.0140.00516.72
7.2.300.0100.00716.70
7.2.290.0040.01716.90
7.2.130.0070.01016.84
7.2.120.0000.01416.84
7.2.110.0100.00316.86
7.2.100.0040.00816.65
7.2.90.0100.00716.73
7.2.80.0040.01117.13
7.2.70.0000.01316.76
7.2.60.0070.00717.02
7.2.50.0030.00917.18
7.2.40.0060.00316.84
7.2.30.0110.00017.16
7.2.20.0080.00416.92
7.2.10.0060.00917.02
7.2.00.0090.00718.00
7.1.250.0040.00815.94
7.1.240.0030.01115.84
7.1.230.0040.00815.88
7.1.220.0060.01015.64
7.1.210.0000.01516.01
7.1.200.0000.01015.57
7.1.190.0060.00915.95
7.1.180.0070.00715.85
7.1.170.0000.01015.73
7.1.160.0040.01215.66
7.1.150.0070.00715.88
7.1.140.0060.00615.93
7.1.130.0040.01115.53
7.1.120.0090.00615.59
7.1.110.0100.00315.82
7.1.100.0120.00816.97
7.1.90.0030.01315.85
7.1.80.0070.01015.87
7.1.70.0020.00916.64
7.1.60.0080.01017.69
7.1.50.0110.00816.38
7.1.40.0030.01016.13
7.1.30.0040.01115.94
7.1.20.0100.00315.79
7.1.10.0080.00715.62
7.1.00.0050.04019.13
7.0.330.0000.01415.47
7.0.320.0030.00815.54
7.0.310.0040.01115.50
7.0.300.0060.01215.56
7.0.290.0030.00615.53
7.0.280.0000.01015.57
7.0.270.0040.00715.35
7.0.260.0070.00715.54
7.0.250.0090.00015.73
7.0.240.0090.00015.61
7.0.230.0030.01215.61
7.0.220.0040.00415.57
7.0.210.0000.00915.41
7.0.200.0060.00516.07
7.0.190.0080.00815.32
7.0.180.0040.00715.48
7.0.170.0060.00315.44
7.0.160.0060.00315.79
7.0.150.0030.01015.57
7.0.140.0030.04118.75
7.0.130.0040.00815.62
7.0.120.0040.00415.61
7.0.110.0100.00315.45
7.0.100.0000.00815.50
7.0.90.0340.04017.63
7.0.80.0300.02817.87
7.0.70.0250.02917.79
7.0.60.0290.04217.70
7.0.50.0320.04217.99
7.0.40.0050.03316.74
7.0.30.0050.04616.81
7.0.20.0080.03816.78
7.0.10.0050.04316.96
7.0.00.0080.03716.81
5.6.380.0030.01214.27
5.6.370.0070.00314.33
5.6.360.0060.00314.50
5.6.350.0090.00314.33
5.6.340.0060.00614.39
5.6.330.0040.01214.21
5.6.320.0030.01014.56
5.6.310.0060.00614.41
5.6.300.0090.00014.34
5.6.290.0130.00014.43
5.6.280.0040.03917.79
5.6.270.0080.00414.44
5.6.260.0000.00914.53
5.6.250.0070.00714.60
5.6.240.0070.04917.44
5.6.230.0110.03317.60
5.6.220.0080.04017.63
5.6.210.0050.03417.80
5.6.200.0070.04217.90
5.6.190.0020.04817.86
5.6.180.0060.04317.71
5.6.170.0050.03117.69
5.6.160.0050.04117.78
5.6.150.0130.02517.81
5.6.140.0050.04417.75
5.6.130.0110.04117.77
5.6.120.0070.04217.89
5.6.110.0090.03717.67
5.6.100.0130.03617.63
5.6.90.0050.04717.65
5.6.80.0030.04717.39
5.6.70.0070.02217.35
5.6.60.0070.04517.43
5.6.50.0040.02917.36
5.6.40.0070.04517.49
5.6.30.0050.03017.34
5.6.20.0020.04717.39
5.6.10.0050.02317.44
5.6.00.0000.04817.30
5.5.380.0130.03515.90
5.5.370.0050.04415.94
5.5.360.0030.02615.90
5.5.350.0090.02515.85
5.5.340.0020.03016.01
5.5.330.0110.04015.98
5.5.320.0030.04916.05
5.5.310.0070.04116.10
5.5.300.0100.04015.96
5.5.290.0080.04016.01
5.5.280.0030.02716.14
5.5.270.0050.04816.03
5.5.260.0080.04116.21
5.5.250.0120.03715.95
5.5.240.0080.03215.92
5.5.230.0030.03015.70
5.5.220.0040.04015.74
5.5.210.0060.04115.86
5.5.200.0050.03215.72
5.5.190.0110.03815.67
5.5.180.0090.03915.76
5.5.170.0040.00411.18
5.5.160.0060.02115.81
5.5.150.0080.02915.75
5.5.140.0060.02215.74
5.5.130.0050.02015.64
5.5.120.0050.02215.71
5.5.110.0060.02915.83
5.5.100.0050.02315.62
5.5.90.0030.02115.65
5.5.80.0100.01815.84
5.5.70.0030.02315.80
5.5.60.0030.02315.71
5.5.50.0100.02515.68
5.5.40.0050.04215.63
5.5.30.0070.02715.70
5.5.20.0050.02415.62
5.5.10.0020.03415.72
5.5.00.0000.03215.63
5.4.450.0070.03715.30
5.4.440.0050.02015.39
5.4.430.0020.04615.39
5.4.420.0100.04215.35
5.4.410.0080.04015.30
5.4.400.0030.04315.05
5.4.390.0070.04215.13
5.4.380.0040.02715.24
5.4.370.0040.02515.20
5.4.360.0110.03315.10
5.4.350.0100.03515.14
5.4.340.0030.04015.20
5.4.330.0000.01011.18
5.4.320.0070.01915.21
5.4.310.0110.03415.27
5.4.300.0050.02215.20
5.4.290.0070.03715.34
5.4.280.0050.02515.06
5.4.270.0020.02615.24
5.4.260.0020.02215.14
5.4.250.0030.02315.09
5.4.240.0090.01515.20
5.4.230.0030.02315.20
5.4.220.0070.02215.20
5.4.210.0060.03815.21
5.4.200.0030.04315.19
5.4.190.0060.04315.10
5.4.180.0030.04315.04
5.4.170.0030.02315.14
5.4.160.0080.02115.17
5.4.150.0020.02115.22
5.4.140.0020.02213.97
5.4.130.0060.01713.84
5.4.120.0020.02213.83
5.4.110.0000.02414.00
5.4.100.0050.01513.98
5.4.90.0020.01913.88
5.4.80.0030.01714.00
5.4.70.0070.02513.93
5.4.60.0040.01813.83
5.4.50.0050.02013.86
5.4.40.0020.02013.80
5.4.30.0030.01713.82
5.4.20.0000.02113.77
5.4.10.0000.02613.82
5.4.00.0030.01813.59
5.3.290.0030.02513.02
5.3.280.0040.02913.01
5.3.270.0010.02612.95
5.3.260.0050.02712.99
5.3.250.0020.02312.92
5.3.240.0020.02312.88
5.3.230.0060.01812.92
5.3.220.0030.02012.87
5.3.210.0070.01812.98
5.3.200.0020.03712.97
5.3.190.0050.02712.90
5.3.180.0030.03112.90
5.3.170.0070.03512.87
5.3.160.0070.02112.95
5.3.150.0010.02612.87
5.3.140.0060.01812.88
5.3.130.0030.03112.93
5.3.120.0050.02012.93
5.3.110.0050.01612.97
5.3.100.0040.03612.67
5.3.90.0040.02212.68
5.3.80.0020.01912.59
5.3.70.0070.02012.57
5.3.60.0020.02012.67
5.3.50.0080.01812.60
5.3.40.0020.02112.63
5.3.30.0050.01712.62
5.3.20.0020.02212.55
5.3.10.0020.04212.53
5.3.00.0040.03412.51
5.2.170.0020.01811.28
5.2.160.0020.02511.21
5.2.150.0040.01511.21
5.2.140.0030.01611.26
5.2.130.0090.02211.20
5.2.120.0020.02611.17
5.2.110.0050.03211.26
5.2.100.0020.02311.17
5.2.90.0050.03511.25
5.2.80.0060.02511.16
5.2.70.0030.03111.24
5.2.60.0020.03011.21
5.2.50.0050.03311.21
5.2.40.0070.01811.21
5.2.30.0100.02511.19
5.2.20.0000.03211.13
5.2.10.0050.01511.06
5.2.00.0070.03010.93
5.1.60.0040.01910.66
5.1.50.0030.01410.71
5.1.40.0050.01510.66
5.1.30.0070.01510.76
5.1.20.0060.03010.67
5.1.10.0010.03010.61
5.1.00.0030.03010.61
5.0.50.0020.0229.79
5.0.40.0040.0229.77
5.0.30.0050.0309.63
5.0.20.0030.0229.66
5.0.10.0020.0189.66
5.0.00.0020.0299.61
4.4.90.0070.0129.24
4.4.80.0000.0229.24
4.4.70.0000.0179.24
4.4.60.0060.0079.24
4.4.50.0000.0119.24
4.4.40.0030.0309.24
4.4.30.0010.0109.24
4.4.20.0020.0209.24
4.4.10.0020.0209.24
4.4.00.0050.0169.24
4.3.110.0020.0149.24
4.3.100.0020.0179.24
4.3.90.0020.0179.24
4.3.80.0030.0269.24
4.3.70.0000.0229.24
4.3.60.0020.0199.24
4.3.50.0070.0139.24
4.3.40.0030.0279.24
4.3.30.0020.0139.24
4.3.20.0020.0189.24
4.3.10.0000.0219.24
4.3.00.0000.0219.24

preferences:
38.69 ms | 400 KiB | 5 Q