3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thing { public function crepe(&$trees) { echo $trees; } } $sh = new Thing; $flee = 'shmee'; $sh->trees($flee);

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.00716.75
8.3.50.0040.01418.18
8.3.40.0100.00718.84
8.3.30.0090.00618.84
8.3.20.0040.00420.39
8.3.10.0050.00323.66
8.3.00.0060.00319.25
8.2.180.0120.00318.41
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0050.00517.48
8.2.120.0040.00426.35
8.2.110.0060.00619.20
8.2.100.0040.00717.63
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0050.00517.50
8.2.60.0030.00617.93
8.2.50.0030.00918.07
8.2.40.0030.00819.32
8.2.30.0040.00420.50
8.2.20.0090.00017.74
8.2.10.0070.00018.06
8.2.00.0000.00718.07
8.1.280.0140.00725.92
8.1.270.0040.00422.07
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0110.00017.42
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0000.00817.61
8.1.180.0000.00718.10
8.1.170.0040.00418.50
8.1.160.0050.00221.86
8.1.150.0000.00718.83
8.1.140.0050.00319.42
8.1.130.0000.00717.65
8.1.120.0000.01017.36
8.1.110.0050.00217.30
8.1.100.0030.00717.37
8.1.90.0000.00717.39
8.1.80.0030.00417.39
8.1.70.0060.00317.40
8.1.60.0080.00017.54
8.1.50.0050.00317.43
8.1.40.0080.00017.52
8.1.30.0000.00817.75
8.1.20.0040.00417.50
8.1.10.0040.00417.49
8.1.00.0000.00817.49
8.0.300.0040.00418.77
8.0.290.0020.00516.75
8.0.280.0000.00718.30
8.0.270.0080.00017.13
8.0.260.0030.00317.19
8.0.250.0030.00316.93
8.0.240.0000.00716.96
8.0.230.0070.00016.98
8.0.220.0040.00416.95
8.0.210.0050.00516.84
8.0.200.0000.00617.01
8.0.190.0050.00316.83
8.0.180.0040.00416.93
8.0.170.0000.00816.94
8.0.160.0050.00316.92
8.0.150.0000.00716.86
8.0.140.0000.00716.84
8.0.130.0000.00713.28
8.0.120.0040.00416.89
8.0.110.0040.00416.92
8.0.100.0050.00216.76
8.0.90.0000.00816.71
8.0.80.0100.00716.84
8.0.70.0050.00216.93
8.0.60.0000.00716.87
8.0.50.0000.00716.78
8.0.30.0070.01417.14
8.0.20.0120.00717.40
8.0.10.0000.00716.96
8.0.00.0110.01016.74
7.4.330.0020.00216.84
7.4.320.0060.00016.39
7.4.300.0030.00316.67
7.4.290.0000.00716.55
7.4.280.0000.00716.64
7.4.270.0060.00316.55
7.4.260.0030.00316.48
7.4.250.0040.00416.57
7.4.240.0000.00716.58
7.4.230.0000.00716.61
7.4.220.0160.00716.43
7.4.210.0000.01416.64
7.4.200.0040.00416.39
7.4.160.0090.00616.62
7.4.150.0150.00417.40
7.4.140.0060.00817.86
7.4.130.0130.00816.45
7.4.120.0100.00816.55
7.4.110.0070.01016.66
7.4.100.0110.01116.63
7.4.90.0080.00816.50
7.4.80.0140.00719.39
7.4.70.0120.00316.37
7.4.60.0090.00616.50
7.4.50.0120.00416.39
7.4.40.0170.00016.47
7.4.30.0070.01516.57
7.4.10.0070.01315.23
7.4.00.0030.01315.08
7.3.330.0030.00313.30
7.3.320.0050.00013.38
7.3.310.0000.00816.39
7.3.300.0070.00016.18
7.3.290.0060.00916.29
7.3.280.0110.00816.33
7.3.270.0030.01317.40
7.3.260.0030.01316.52
7.3.250.0130.00416.38
7.3.240.0110.00616.37
7.3.230.0120.00616.53
7.3.210.0060.01316.30
7.3.200.0160.00016.18
7.3.190.0070.01116.53
7.3.180.0030.01316.57
7.3.170.0130.00316.31
7.3.160.0090.00616.50
7.3.130.0070.01314.99
7.3.120.0160.00314.79
7.3.110.0100.00714.69
7.3.100.0140.00314.70
7.3.90.0060.00914.84
7.3.80.0090.00014.80
7.3.70.0000.01314.54
7.3.60.0040.01114.76
7.3.50.0030.00614.87
7.3.40.0060.01014.79
7.3.30.0050.00514.65
7.3.20.0000.00816.77
7.3.10.0090.00316.60
7.3.00.0030.00616.61
7.2.330.0090.00916.68
7.2.320.0050.01516.71
7.2.310.0120.00616.66
7.2.300.0030.01316.68
7.2.290.0100.00616.45
7.2.260.0040.01514.98
7.2.250.0060.01514.92
7.2.240.0000.01514.96
7.2.230.0030.01314.93
7.2.220.0070.00715.20
7.2.210.0030.00914.78
7.2.200.0070.01015.04
7.2.190.0000.01415.08
7.2.180.0070.00715.03
7.2.170.0070.01014.66
7.2.160.0090.00014.96
7.2.150.0030.00916.73
7.2.140.0050.00516.60
7.2.130.0070.00416.63
7.2.120.0090.00616.82
7.2.110.0040.01416.89
7.2.100.0110.00416.70
7.2.90.0090.00616.83
7.2.80.0060.00916.93
7.2.70.0070.00716.95
7.2.60.0090.00616.66
7.2.50.0110.00316.89
7.2.40.0050.00516.94
7.2.30.0030.00616.94
7.2.20.0060.01116.89
7.2.10.0060.00716.67
7.2.00.0050.00817.98
7.1.330.0110.00315.68
7.1.320.0030.00915.68
7.1.310.0060.00615.54
7.1.300.0000.00915.71
7.1.290.0070.00315.65
7.1.280.0090.00615.25
7.1.270.0090.00615.66
7.1.260.0080.00815.68
7.1.250.0030.00915.68
7.1.240.0040.01115.77
7.1.230.0080.00415.35
7.1.220.0000.01015.59
7.1.210.0060.00615.66
7.1.200.0030.00615.50
7.1.190.0040.00815.75
7.1.180.0000.01115.60
7.1.170.0000.01115.79
7.1.160.0000.01515.61
7.1.150.0040.00815.58
7.1.140.0050.00515.65
7.1.130.0050.00515.45
7.1.120.0000.01115.63
7.1.110.0030.01015.64
7.1.100.0050.00716.84
7.1.90.0030.01215.50
7.1.80.0110.00415.55
7.1.70.0040.01116.35
7.1.60.0090.01117.38
7.1.50.0100.00916.20
7.1.40.0130.00615.85
7.1.30.0040.00715.33
7.1.20.0090.00315.39
7.1.10.0030.01315.46
7.1.00.0030.04418.98
7.0.330.0060.00615.30
7.0.320.0030.00515.33
7.0.310.0030.00815.41
7.0.300.0000.01115.32
7.0.290.0060.01015.05
7.0.280.0030.00915.15
7.0.270.0060.00615.31
7.0.260.0100.00315.34
7.0.250.0030.01015.33
7.0.240.0030.00915.41
7.0.230.0040.00815.41
7.0.220.0030.00815.40
7.0.210.0100.00315.23
7.0.200.0070.00715.88
7.0.190.0130.00615.10
7.0.180.0070.01015.13
7.0.170.0060.00615.32
7.0.160.0140.00015.14
7.0.150.0040.01215.32
7.0.140.0060.01015.15
7.0.130.0030.00915.52
7.0.120.0090.00915.37
7.0.110.0040.01215.15
7.0.100.0110.00415.32
7.0.90.0100.00715.34
7.0.80.0060.00615.26
7.0.70.0000.01115.36
7.0.60.0070.04517.51
7.0.50.0080.02216.52
7.0.40.0070.04616.93
7.0.30.0200.02516.67
7.0.20.0180.02416.78
7.0.10.0020.04516.70
7.0.00.0100.03616.64
5.6.400.0060.00314.15
5.6.390.0050.00313.96
5.6.380.0060.00314.13
5.6.370.0000.01314.45
5.6.360.0040.01114.60
5.6.350.0030.01014.38
5.6.340.0130.00014.56
5.6.330.0040.01114.69
5.6.320.0040.00714.24
5.6.310.0070.01314.47
5.6.300.0100.00714.59
5.6.290.0040.01114.32
5.6.280.0030.02117.62
5.6.270.0000.01414.29
5.6.260.0100.00614.15
5.6.250.0090.00613.98
5.6.240.0120.00014.36
5.6.230.0000.01614.43
5.6.220.0040.00814.29
5.6.210.0150.03817.45
5.6.200.0020.05116.25
5.6.190.0070.03417.48
5.6.180.0180.04417.27
5.6.170.0070.03417.45
5.6.160.0050.03017.33
5.6.150.0060.04116.08
5.6.140.0130.03516.30
5.6.130.0050.04316.14
5.6.120.0050.03917.62
5.6.110.0070.04317.58
5.6.100.0120.04317.74
5.6.90.0090.02717.72
5.6.80.0010.02417.26
5.6.70.0040.00414.22
5.6.60.0000.01214.32
5.6.50.0030.00914.14
5.6.40.0090.00614.02
5.6.30.0000.00914.29
5.6.20.0070.00314.27
5.6.10.0000.01314.37
5.6.00.0070.00714.04
5.5.380.0050.00514.46
5.5.370.0000.01014.26
5.5.360.0030.01414.28
5.5.350.0170.04217.42
5.5.340.0100.03716.03
5.5.330.0030.04217.17
5.5.320.0030.03617.34
5.5.310.0150.04217.30
5.5.300.0000.03616.10
5.5.290.0070.04016.00
5.5.280.0050.04717.64
5.5.270.0100.04217.39
5.5.260.0000.05317.44
5.5.250.0100.03517.48
5.5.240.1340.02517.11
5.5.230.0030.01313.88
5.5.220.0000.01314.36
5.5.210.0070.00714.08
5.5.200.0000.01413.79
5.5.190.0060.00614.17
5.5.180.0000.00814.06
5.5.170.0060.00314.03
5.5.160.0060.00614.04
5.5.150.0070.00714.34
5.5.140.0070.00714.26
5.5.130.0090.00313.95
5.5.120.0090.00914.07
5.5.110.0030.01414.16
5.5.100.0090.00614.18
5.5.90.0040.01414.26
5.5.80.0080.00314.06
5.5.70.0070.00714.20
5.5.60.0030.01013.98
5.5.50.0040.01114.11
5.5.40.0040.00714.28
5.5.30.0070.01014.00
5.5.20.0030.01313.85
5.5.10.0060.00913.71
5.5.00.0040.01114.08

preferences:
53.64 ms | 401 KiB | 5 Q