3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; } $foo = new Foo; $foo->bar['bing'] = function (){ return 1;}; echo $foo->bar['bing']();

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.0070.00718.84
8.3.30.0150.00019.09
8.3.20.0040.00420.34
8.3.10.0050.00323.65
8.3.00.0030.00619.04
8.2.170.0100.00722.96
8.2.160.0110.00320.39
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00019.48
8.2.110.0130.00322.25
8.2.100.0110.00018.03
8.2.90.0040.00419.02
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0000.00818.16
8.2.50.0030.00618.07
8.2.40.0040.00420.00
8.2.30.0040.00418.38
8.2.20.0090.00017.63
8.2.10.0040.00418.11
8.2.00.0040.00419.39
8.1.270.0080.00023.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0080.00419.00
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0100.00017.22
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0040.00418.61
8.1.160.0040.00422.02
8.1.150.0030.00518.60
8.1.140.0040.00417.39
8.1.130.0000.00717.74
8.1.120.0000.01017.44
8.1.110.0050.00317.50
8.1.100.0040.00317.46
8.1.90.0070.00017.31
8.1.80.0070.00017.45
8.1.70.0000.00717.42
8.1.60.0030.00517.60
8.1.50.0030.00617.58
8.1.40.0070.00017.40
8.1.30.0030.00617.58
8.1.20.0040.00417.55
8.1.10.0050.00317.54
8.1.00.0020.00517.52
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0030.00318.44
8.0.270.0000.00717.21
8.0.260.0000.00617.27
8.0.250.0000.00716.91
8.0.240.0030.00316.97
8.0.230.0040.00416.79
8.0.220.0030.00316.79
8.0.210.0000.00816.71
8.0.200.0030.00316.94
8.0.190.0050.00316.90
8.0.180.0000.00816.98
8.0.170.0000.00816.93
8.0.160.0030.00316.86
8.0.150.0000.00716.81
8.0.140.0090.00016.73
8.0.130.0030.00313.28
8.0.120.0040.00416.87
8.0.110.0000.00716.92
8.0.100.0040.00416.75
8.0.90.0070.00016.75
8.0.80.0090.00916.88
8.0.70.0000.00716.91
8.0.60.0030.00416.71
8.0.50.0040.00416.73
8.0.30.0100.01117.00
8.0.20.0130.00617.40
8.0.10.0080.00017.02
8.0.00.0080.00916.61
7.4.330.0000.00715.00
7.4.320.0000.00616.64
7.4.300.0000.00616.36
7.4.290.0040.00416.59
7.4.280.0000.00816.49
7.4.270.0080.00016.65
7.4.260.0030.00316.58
7.4.250.0040.00416.49
7.4.240.0040.00416.58
7.4.230.0000.00716.62
7.4.220.0130.01016.63
7.4.210.0030.01616.61
7.4.200.0040.00416.64
7.4.160.0030.01616.54
7.4.150.0110.00617.40
7.4.140.0110.00517.86
7.4.130.0080.00916.52
7.4.120.0120.00816.54
7.4.110.0100.00616.54
7.4.100.0070.01016.59
7.4.90.0150.00416.60
7.4.80.0110.01519.39
7.4.70.0090.00916.52
7.4.60.0140.00316.38
7.4.50.0000.00916.38
7.4.40.0180.00316.33
7.4.30.0060.00916.60
7.4.00.0060.00614.86
7.3.330.0030.00313.39
7.3.320.0050.00013.39
7.3.310.0030.00516.23
7.3.300.0000.00716.29
7.3.290.0100.00916.26
7.3.280.0110.00716.28
7.3.270.0070.01117.40
7.3.260.0120.00616.36
7.3.250.0130.00416.28
7.3.240.0030.01416.38
7.3.230.0130.01016.55
7.3.210.0030.01416.55
7.3.200.0140.00719.39
7.3.190.0060.00916.29
7.3.180.0130.00316.52
7.3.170.0060.01116.61
7.3.160.0090.01216.39
7.3.120.0090.00614.87
7.3.10.0000.01116.82
7.3.00.0030.01016.44
7.2.330.0000.01816.48
7.2.320.0030.01416.29
7.2.310.0070.01016.80
7.2.300.0110.00716.75
7.2.290.0030.01316.78
7.2.130.0040.01116.95
7.2.120.0040.00717.08
7.2.110.0080.00817.04
7.2.100.0040.00416.76
7.2.90.0000.01416.86
7.2.80.0060.00617.17
7.2.70.0060.00616.59
7.2.60.0060.00917.20
7.2.50.0080.00417.00
7.2.40.0080.00616.92
7.2.30.0030.00916.94
7.2.20.0040.01116.99
7.2.10.0070.00716.89
7.2.00.0060.00718.05
7.1.250.0000.01015.49
7.1.240.0030.00915.84
7.1.230.0030.00515.74
7.1.220.0060.01015.87
7.1.210.0070.00315.76
7.1.200.0000.01315.83
7.1.190.0030.00915.40
7.1.180.0040.00715.69
7.1.170.0000.01215.62
7.1.160.0070.00715.84
7.1.150.0030.00915.61
7.1.140.0070.00715.97
7.1.130.0030.00915.72
7.1.120.0030.00515.79
7.1.110.0040.00415.64
7.1.100.0050.00716.96
7.1.90.0030.00615.76
7.1.80.0100.00015.75
7.1.70.0030.00716.48
7.1.60.0100.00817.66
7.1.50.0090.01116.25
7.1.40.0090.00615.91
7.1.30.0070.00015.82
7.1.20.0070.00715.50
7.1.10.0100.00315.57
7.1.00.0040.04919.03
7.0.330.0000.01115.40
7.0.320.0120.00015.38
7.0.310.0030.00915.55
7.0.300.0030.00615.41
7.0.290.0030.00715.21
7.0.280.0060.00615.34
7.0.270.0040.00415.41
7.0.260.0030.01215.12
7.0.250.0030.00615.52
7.0.240.0070.00715.09
7.0.230.0100.00715.46
7.0.220.0030.01015.50
7.0.210.0040.01115.56
7.0.200.0040.00716.06
7.0.190.0070.00715.31
7.0.180.0000.01115.36
7.0.170.0080.00415.35
7.0.160.0040.00415.50
7.0.150.0100.00015.44
7.0.140.0040.03718.68
7.0.130.0100.00615.23
7.0.120.0030.00915.55
7.0.110.0100.00015.55
7.0.100.0030.01015.54
7.0.90.0060.00315.49
7.0.80.0030.01015.56
7.0.70.0070.00715.55
7.0.60.0170.03917.61
7.0.50.0050.05016.64
7.0.40.0070.04016.82
7.0.30.0190.01816.88
7.0.20.0220.04316.84
7.0.10.0190.03316.70
7.0.00.0050.03516.78
5.6.380.0060.01014.31
5.6.370.0000.01514.22
5.6.360.0050.00514.50
5.6.350.0080.00014.03
5.6.340.0040.00414.07
5.6.330.0040.01114.77
5.6.320.0110.00414.02
5.6.310.0070.00314.26
5.6.300.0120.00314.45
5.6.290.0060.00614.22
5.6.280.0020.04017.76
5.6.270.0030.00714.47
5.6.260.0050.00814.39
5.6.250.0000.01114.46
5.6.240.0100.00314.41
5.6.230.0030.00714.50
5.6.220.0060.00613.98
5.6.210.0030.02517.45
5.6.200.0080.03016.31
5.6.190.0050.02817.38
5.6.180.0030.02917.73
5.6.170.0080.03517.47
5.6.160.0120.04017.46
5.6.150.0110.02216.30
5.6.140.0060.04616.39
5.6.130.0230.02816.36
5.6.120.0050.04517.68
5.6.110.0050.04117.66
5.6.100.0150.03517.69
5.6.90.0080.04317.60
5.6.80.0000.02717.50
5.6.70.0040.00814.14
5.6.60.0000.01514.25
5.6.50.0060.00614.31
5.6.40.0060.00314.18
5.6.30.0040.01114.12
5.6.20.0090.00914.31
5.6.10.0030.01014.27
5.6.00.0070.00714.17
5.5.380.0030.00911.55
5.5.370.0040.00811.55
5.5.360.0000.01111.43
5.5.350.0100.04016.03
5.5.340.0060.03314.54
5.5.330.0050.02515.82
5.5.320.0170.04016.00
5.5.310.0170.04315.78
5.5.300.0080.03314.49
5.5.290.0030.02414.70
5.5.280.0080.04516.09
5.5.270.0050.04515.77
5.5.260.0080.04416.18
5.5.250.0070.03315.81
5.5.240.0120.01615.76
5.5.230.0060.00310.92
5.5.220.0030.00711.31
5.5.210.0070.00311.05
5.5.200.0060.00311.20
5.5.190.0000.01211.11
5.5.180.0030.00310.99
5.5.170.0030.01011.12
5.5.160.0060.00611.23
5.5.150.0080.00011.19
5.5.140.0080.00311.19
5.5.130.0030.00311.03
5.5.120.0000.01011.44
5.5.110.0000.01111.19
5.5.100.0040.00411.37
5.5.90.0030.00811.05
5.5.80.0030.00711.03
5.5.70.0070.00311.11
5.5.60.0090.00310.96
5.5.50.0050.00311.27
5.5.40.0000.00611.36
5.5.30.0080.00011.28
5.5.20.0080.00310.84
5.5.10.0000.01111.04
5.5.00.0090.00311.23
5.4.450.0120.02520.00
5.4.440.0190.02820.32
5.4.430.0160.02020.27
5.4.420.0210.02219.97
5.4.410.0210.02318.76
5.4.400.0280.01917.87
5.4.390.0150.02316.96
5.4.380.0350.02814.91
5.4.370.0470.02614.92
5.4.360.0410.02614.85
5.4.350.0450.03214.86
5.4.340.0350.02414.91
5.4.330.0070.00710.91
5.4.320.0060.02511.73
5.4.310.0020.02511.68
5.4.300.0050.01911.81
5.4.290.0080.02211.88
5.4.280.0040.02011.62
5.4.270.0060.02311.80
5.4.260.0080.02011.67
5.4.250.0020.02611.58
5.4.240.0070.01911.59
5.4.230.0060.02511.78
5.4.220.0040.02111.69
5.4.210.0090.01711.64
5.4.200.0070.02111.81
5.4.190.0080.01611.77
5.4.180.0060.01811.71
5.4.170.0030.02511.57
5.4.160.0050.02111.77
5.4.150.0060.02011.61
5.4.140.0020.02411.57
5.4.130.0060.01811.47
5.4.120.0030.02111.56
5.4.110.0080.01611.45
5.4.100.0050.02211.57
5.4.90.0060.02311.63
5.4.80.0030.02411.59
5.4.70.0060.01911.59
5.4.60.0020.02411.46
5.4.50.0070.02011.59
5.4.40.0060.02011.43
5.4.30.0050.01811.57
5.4.20.0060.01811.62
5.4.10.0020.02111.63
5.4.00.0080.01911.30
5.3.290.0060.02011.63
5.3.280.0070.02511.64
5.3.270.0060.02411.55
5.3.260.0050.02711.67
5.3.250.0050.02111.67
5.3.240.0030.02311.60
5.3.230.0050.02211.56
5.3.220.0060.02111.50
5.3.210.0060.02311.43
5.3.200.0070.01911.58
5.3.190.0050.02511.62
5.3.180.0040.02311.67
5.3.170.0050.02111.67
5.3.160.0070.02011.56
5.3.150.0060.02311.67
5.3.140.0050.02611.52
5.3.130.0050.02311.68
5.3.120.0090.02011.65
5.3.110.0070.02311.67
5.3.100.0080.01911.28
5.3.90.0040.02311.33
5.3.80.0060.02211.27
5.3.70.0070.01911.29
5.3.60.0040.02011.33
5.3.50.0060.02011.26
5.3.40.0020.02211.19
5.3.30.0060.02111.34
5.3.20.0050.02111.15
5.3.10.0040.02011.05
5.3.00.0040.02310.93
5.2.170.0040.0189.57
5.2.160.0050.0159.57
5.2.150.0060.0189.57
5.2.140.0020.0189.57
5.2.130.0050.0209.55
5.2.120.0060.0159.55
5.2.110.0050.0169.55
5.2.100.0060.0149.55
5.2.90.0020.0189.55
5.2.80.0050.0179.55
5.2.70.0030.0189.55
5.2.60.0040.0189.53
5.2.50.0020.0199.51
5.2.40.0050.0189.50
5.2.30.0050.0199.48
5.2.20.0040.0199.48
5.2.10.0030.0179.43
5.2.00.0020.0179.37
5.1.60.0060.0109.01
5.1.50.0030.0159.00
5.1.40.0030.0149.00
5.1.30.0040.0149.17
5.1.20.0020.0179.18
5.1.10.0060.0189.04
5.1.00.0060.0139.04
5.0.50.0040.0128.28
5.0.40.0040.0138.21
5.0.30.0020.0198.12
5.0.20.0010.0148.10
5.0.10.0040.0118.09
5.0.00.0040.0188.09
4.4.90.0020.0107.35
4.4.80.0030.0127.34
4.4.70.0040.0097.34
4.4.60.0020.0157.34
4.4.50.0020.0117.35
4.4.40.0010.0207.31
4.4.30.0020.0137.34
4.4.20.0020.0107.38
4.4.10.0020.0107.39
4.4.00.0040.0137.34
4.3.110.0020.0107.29
4.3.100.0020.0137.29
4.3.90.0020.0127.28
4.3.80.0020.0177.25
4.3.70.0050.0097.28
4.3.60.0020.0107.28
4.3.50.0020.0117.28
4.3.40.0030.0137.23
4.3.30.0010.0116.61
4.3.20.0030.0106.60
4.3.10.0020.0136.58
4.3.00.0050.00816.16

preferences:
46.12 ms | 400 KiB | 5 Q