3v4l.org

run code in 300+ PHP versions simultaneously
<?php class toStr { private $str; public function __construct( $str ) { $this->str = $str; } public function __toString() { return $this->str; } } $a = array(); $a[ new toStr('hi') ] = 'there';

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.4.20.0130.00718.92
8.4.10.0030.00619.67
8.3.150.0100.00716.85
8.3.140.0090.00617.29
8.3.130.0060.00318.77
8.3.120.0070.00718.88
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0050.00326.77
8.3.80.0090.00018.43
8.3.70.0090.00916.88
8.3.60.0180.00018.55
8.3.50.0080.00617.59
8.3.40.0070.00718.87
8.3.30.0080.00818.87
8.3.20.0080.00020.89
8.3.10.0040.00423.70
8.3.00.0080.00320.49
8.2.260.0090.00916.55
8.2.250.0000.00816.77
8.2.240.0090.00017.23
8.2.230.0180.00022.58
8.2.220.0060.01237.54
8.2.210.0080.00026.77
8.2.200.0000.00916.63
8.2.190.0130.00718.54
8.2.180.0160.00625.92
8.2.170.0110.00419.13
8.2.160.0030.01020.52
8.2.150.0050.00224.18
8.2.140.0030.00524.66
8.2.130.0080.00021.12
8.2.120.0090.00026.35
8.2.110.0040.00420.52
8.2.100.0040.00817.84
8.2.90.0000.00720.45
8.2.80.0030.00618.05
8.2.70.0080.00018.03
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0000.00820.45
8.2.30.0000.00719.36
8.2.20.0040.00418.06
8.2.10.0070.00019.16
8.2.00.0040.00418.17
8.1.310.0100.00018.52
8.1.300.0040.00418.05
8.1.290.0030.00630.84
8.1.280.0140.00425.92
8.1.270.0050.00220.20
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00719.23
8.1.230.0060.00620.85
8.1.220.0000.00817.79
8.1.210.0060.00318.84
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0080.00018.53
8.1.160.0040.00418.88
8.1.150.0060.00318.94
8.1.140.0030.00320.31
8.1.130.0040.00420.19
8.1.120.0000.00717.51
8.1.110.0000.00717.51
8.1.100.0070.00017.35
8.1.90.0050.00217.44
8.1.80.0000.00817.43
8.1.70.0000.00817.45
8.1.60.0050.00317.67
8.1.50.0040.00417.42
8.1.40.0000.00717.47
8.1.30.0000.00717.51
8.1.20.0070.00417.55
8.1.10.0030.00517.62
8.1.00.0000.00817.48
8.0.300.0000.00719.98
8.0.290.0000.00816.88
8.0.280.0050.00318.30
8.0.270.0080.00018.73
8.0.260.0030.00320.11
8.0.250.0030.00316.99
8.0.240.0000.00617.04
8.0.230.0070.00016.89
8.0.220.0000.00716.87
8.0.210.0030.00316.94
8.0.200.0000.00717.04
8.0.190.0040.00416.90
8.0.180.0040.00417.06
8.0.170.0050.00316.98
8.0.160.0040.00517.04
8.0.150.0030.00516.89
8.0.140.0000.00816.91
8.0.130.0050.00213.42
8.0.120.0040.00416.95
8.0.110.0030.00516.75
8.0.100.0000.00816.74
8.0.90.0000.00716.85
8.0.80.0060.00916.93
8.0.70.0040.00416.94
8.0.60.0040.00416.74
8.0.50.0040.00416.74
8.0.30.0130.00617.13
8.0.20.0060.01416.80
8.0.10.0000.00717.03
8.0.00.0140.00916.63
7.4.330.0060.00015.55
7.4.320.0040.00416.37
7.4.300.0000.00616.50
7.4.290.0030.00316.55
7.4.280.0040.00416.59
7.4.270.0070.00016.61
7.4.260.0030.00616.50
7.4.250.0070.00016.39
7.4.240.0050.00316.54
7.4.230.0070.00016.63
7.4.220.0000.00716.58
7.4.210.0080.00716.49
7.4.200.0030.00316.54
7.4.160.0110.00416.45
7.4.140.0110.00617.86
7.4.130.0100.00616.50
7.4.120.0110.00716.39
7.4.110.0100.00716.50
7.4.100.0120.00616.54
7.4.90.0100.00716.36
7.4.80.0140.00419.39
7.4.70.0070.01016.43
7.4.60.0140.00316.56
7.4.50.0100.00316.26
7.4.40.0090.01216.50
7.4.00.0150.00014.76
7.3.330.0000.00513.23
7.3.320.0060.00013.36
7.3.310.0000.00716.47
7.3.300.0070.00016.24
7.3.290.0040.00416.24
7.3.280.0090.00816.36
7.3.260.0110.01016.37
7.3.230.0030.01316.62
7.3.210.0160.00016.40
7.3.200.0030.01416.30
7.3.190.0140.00716.38
7.3.180.0060.01116.41
7.3.170.0070.01116.49
7.3.160.0070.01016.45
7.3.30.0090.00314.74
7.3.20.0440.00614.63
7.3.10.0340.00614.65
7.3.00.0480.00014.68
7.2.330.0090.00916.65
7.2.320.0080.00816.59
7.2.310.0080.00816.55
7.2.300.0150.00816.25
7.2.290.0140.00916.65
7.2.160.0110.00014.70
7.2.150.0410.00714.98
7.2.140.0500.00714.88
7.2.130.0420.00314.92
7.2.120.0370.01014.94
7.2.110.0570.01015.08
7.2.100.0400.00714.75
7.2.90.0420.00715.11
7.2.80.0480.00714.73
7.2.70.0370.00714.79
7.2.60.0400.00914.62
7.2.50.0720.00614.58
7.2.40.0350.00614.90
7.2.30.0360.01014.80
7.2.20.0450.00314.98
7.2.10.0600.01014.58
7.2.00.0380.00614.66
7.1.270.0530.01013.93
7.1.260.0410.00013.84
7.1.250.0410.00313.89
7.1.240.0370.01113.78
7.1.230.0600.01113.86
7.1.220.0490.01013.61
7.1.210.0420.01113.76
7.1.200.0550.01213.82
7.1.190.0630.00313.54
7.1.180.0510.01313.61
7.1.170.0310.00713.71
7.1.160.0390.00613.89
7.1.150.0310.00613.85
7.1.140.0610.01313.86
7.1.130.0460.01113.77
7.1.120.0480.00613.80
7.1.110.0630.00713.79
7.1.100.0630.00613.89
7.1.90.0570.00713.79
7.1.80.0530.00713.89
7.1.70.0440.01514.02
7.1.60.0570.00313.91
7.1.50.0740.00613.80
7.1.40.0450.00613.48
7.1.30.0540.00713.83
7.1.20.0600.00413.95
7.1.10.0560.00413.89
7.1.00.0520.01014.03
7.0.330.0600.00013.48
7.0.320.0510.01513.56
7.0.310.0540.00713.60
7.0.300.0520.00713.66
7.0.290.0470.00313.68
7.0.280.0620.00313.74
7.0.270.0610.00013.55
7.0.260.0430.00913.29
7.0.250.0750.00713.47
7.0.240.0460.01613.42
7.0.230.0520.00713.61
7.0.220.0410.01413.23
7.0.210.0560.01213.21
7.0.200.0390.01913.44
7.0.190.0460.00313.50
7.0.180.1080.00913.46
7.0.170.0570.01013.53
7.0.160.0590.01313.43
7.0.150.0560.00313.46
7.0.140.0650.00713.21
7.0.130.0380.01613.71
7.0.120.0650.00313.62
7.0.110.0550.01013.53
7.0.100.0550.01013.31
7.0.90.0590.01413.51
7.0.80.0610.01013.49
7.0.70.0580.00513.52
7.0.60.0510.01013.26
7.0.50.0400.00713.70
7.0.40.0660.00013.56
7.0.30.0380.01013.43
7.0.20.0520.00813.55
7.0.10.0450.01413.58
7.0.00.0460.00713.42
5.6.400.0220.01214.59
5.6.390.0140.00914.14
5.6.380.0170.01414.32
5.6.370.0230.00614.44
5.6.360.0070.00714.30
5.6.350.0160.01314.52
5.6.340.0150.00414.26
5.6.330.0140.00914.55
5.6.320.0120.01214.55
5.6.310.0220.01114.41
5.6.300.0220.00414.67
5.6.290.0160.01114.37
5.6.280.0150.00414.17
5.6.270.0180.00714.50
5.6.260.0060.01714.50
5.6.250.0120.00614.52
5.6.240.0120.00614.43
5.6.230.0120.00814.17
5.6.220.0150.00414.33
5.6.210.0190.00614.66
5.6.200.0170.00914.34
5.6.190.0060.01514.64
5.6.180.0170.00914.31
5.6.170.0130.00614.54
5.6.160.0170.00714.12
5.6.150.0080.00814.51
5.6.140.0110.00614.48
5.6.130.0200.00314.35
5.6.120.0150.00714.38
5.6.110.0070.01814.42
5.6.100.0090.00614.41
5.6.90.0150.00414.36
5.6.80.0270.00314.06
5.6.70.0230.00314.51
5.6.60.0130.00614.17
5.6.50.0240.00714.24
5.6.40.0120.01214.23
5.6.30.0070.01814.21
5.6.20.0110.00714.30
5.6.10.0130.01314.47
5.6.00.0120.00614.17
5.5.380.0050.01414.47
5.5.370.0080.01214.18
5.5.360.0110.01514.48
5.5.350.0220.00914.13
5.5.340.0120.00614.31
5.5.330.0030.01814.50
5.5.320.0190.00414.30
5.5.310.0110.01114.18
5.5.300.0090.00614.59
5.5.290.0090.01114.27
5.5.280.0080.00614.20
5.5.270.0120.00614.57
5.5.260.0110.01314.16
5.5.250.0140.00914.33
5.5.240.0180.00814.23
5.5.230.0140.00714.34
5.5.220.0100.01414.04
5.5.210.0160.00814.16
5.5.200.0260.00414.27
5.5.190.0180.00314.17
5.5.180.0130.01014.32
5.5.170.0120.01214.39
5.5.160.0130.00914.08
5.5.150.0130.01014.03
5.5.140.0160.00613.86
5.5.130.0060.01714.40
5.5.120.0120.00414.30
5.5.110.0080.00814.39
5.5.100.0070.01413.96
5.5.90.0260.00314.33
5.5.80.0080.00614.42
5.5.70.0060.01014.25
5.5.60.0080.01614.02
5.5.50.0180.00014.18
5.5.40.0100.02014.32
5.5.30.0140.01114.25
5.5.20.0200.00714.03
5.5.10.0040.01513.99
5.5.00.0190.00014.41
5.4.450.0100.00010.89
5.4.440.0090.00910.81
5.4.430.0080.01210.96
5.4.420.0130.00910.88
5.4.410.0070.01311.19
5.4.400.0140.00010.93
5.4.390.0080.00510.80
5.4.380.0070.00410.99
5.4.370.0100.00311.20
5.4.360.0070.00710.75
5.4.350.0120.00010.94
5.4.340.0110.00611.02
5.4.330.0070.01110.81
5.4.320.0040.01110.88
5.4.310.0150.00411.10
5.4.300.0000.01311.18
5.4.290.0110.00310.69
5.4.280.0100.00310.81
5.4.270.0110.00911.20
5.4.260.0090.00910.98
5.4.250.0180.00310.84
5.4.240.0080.00510.73
5.4.230.0120.00611.12
5.4.220.0110.01111.20
5.4.210.0050.01511.13
5.4.200.0090.00411.03
5.4.190.0100.00211.16
5.4.180.0160.00511.10
5.4.170.0130.01010.94
5.4.160.0150.00310.87
5.4.150.0050.01511.11
5.4.140.0080.00411.15
5.4.130.0080.01210.98
5.4.120.0110.00011.16
5.4.110.0070.00311.38
5.4.100.0080.01211.20
5.4.90.0090.00411.13
5.4.80.0070.00611.23
5.4.70.0110.01110.98
5.4.60.0080.00410.97
5.4.50.0080.00811.17
5.4.40.0100.00711.16
5.4.30.0110.00711.16
5.4.20.0110.00510.94
5.4.10.0170.00010.94
5.4.00.0080.01211.13
5.3.290.0200.00010.73
5.3.280.0160.00610.62
5.3.270.0120.00010.44
5.3.260.0090.00910.62
5.3.250.0140.00610.63
5.3.240.0080.01510.25
5.3.230.0070.00410.60
5.3.220.0060.00610.33
5.3.210.0000.00910.59
5.3.200.0060.01210.54
5.3.190.0000.00910.55
5.3.180.0050.00810.78
5.3.170.0150.00010.79
5.3.160.0060.00310.75
5.3.150.0130.00610.77
5.3.140.0140.00710.55
5.3.130.0060.00410.70
5.3.120.0050.01110.37
5.3.110.0060.00910.43
5.3.100.0150.00310.67
5.3.90.0050.01010.56
5.3.80.0080.00810.48
5.3.70.0060.00610.50
5.3.60.0110.00010.31
5.3.50.0080.01310.24
5.3.40.0110.00710.27
5.3.30.0080.00310.16
5.3.20.0120.00410.55
5.3.10.0120.00810.31
5.3.00.0110.00010.22
5.2.170.0060.0069.34
5.2.160.0110.0079.55
5.2.150.0090.0029.58
5.2.140.0090.0069.55
5.2.130.0000.0089.51
5.2.120.0040.0119.52
5.2.110.0080.0039.59
5.2.100.0070.0119.55
5.2.90.0110.0069.58
5.2.80.0090.0099.22
5.2.70.0040.0089.48
5.2.60.0060.0099.08
5.2.50.0040.0069.55
5.2.40.0100.0009.44
5.2.30.0090.0009.38
5.2.20.0030.0119.11
5.2.10.0090.0009.31
5.2.00.0000.0088.91
5.1.60.0040.0078.73
5.1.50.0030.0088.73
5.1.40.0100.0038.73
5.1.30.0100.0038.73
5.1.20.0100.0058.73
5.1.10.0050.0058.73
5.1.00.0000.0078.73
5.0.50.0040.0098.73
5.0.40.0100.0008.73
5.0.30.0090.0008.73
5.0.20.0070.0008.73
5.0.10.0040.0028.73
5.0.00.0040.0028.73
4.4.90.0050.0028.73
4.4.80.0050.0068.73
4.4.70.0060.0068.73
4.4.60.0030.0078.73
4.4.50.0030.0038.73
4.4.40.0040.0048.73
4.4.30.0090.0008.73
4.4.20.0030.0098.73
4.4.10.0070.0058.73
4.4.00.0000.0118.73
4.3.110.0030.0038.73
4.3.100.0000.0068.73
4.3.90.0060.0008.73
4.3.80.0060.0068.73
4.3.70.0060.0008.73
4.3.60.0030.0038.73
4.3.50.0000.0068.73
4.3.40.0060.0008.73
4.3.30.0000.0058.73
4.3.20.0050.0008.73
4.3.10.0000.0048.73
4.3.00.0000.0048.73

preferences:
84.93 ms | 403 KiB | 5 Q