3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gen($a) { $b = yield $a; yield $a + $b + 1; } function yf() { yield from gen(1); yield from gen(4); } $g = yf(); $g->current(); $g->throw(new Exception("Whoa there lassie"));

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.70.0090.00616.50
8.3.60.0090.01216.50
8.3.50.0160.00522.05
8.3.40.0070.00718.85
8.3.30.0140.00018.63
8.3.20.0080.00020.35
8.3.10.0070.00023.66
8.3.00.0060.00319.15
8.2.180.0150.00616.63
8.2.170.0070.00722.96
8.2.160.0090.00621.96
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00417.63
8.2.120.0040.00426.35
8.2.110.0030.00720.64
8.2.100.0080.00417.84
8.2.90.0050.00319.08
8.2.80.0040.00417.97
8.2.70.0030.00717.50
8.2.60.0000.01117.80
8.2.50.0060.00318.07
8.2.40.0040.00419.41
8.2.30.0000.00720.54
8.2.20.0040.00417.55
8.2.10.0030.00518.11
8.2.00.0080.00018.15
8.1.280.0070.01025.92
8.1.270.0040.00422.14
8.1.260.0000.00728.09
8.1.250.0050.00328.09
8.1.240.0040.00821.89
8.1.230.0110.00020.93
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0030.00617.10
8.1.180.0000.00918.10
8.1.170.0040.00418.68
8.1.160.0000.00721.93
8.1.150.0000.00718.88
8.1.140.0030.00619.49
8.1.130.0050.00317.73
8.1.120.0030.00517.50
8.1.110.0070.00017.41
8.1.100.0030.00417.40
8.1.90.0050.00217.48
8.1.80.0050.00217.47
8.1.70.0030.00317.43
8.1.60.0030.00617.56
8.1.50.0000.00717.50
8.1.40.0060.00317.55
8.1.30.0050.00317.66
8.1.20.0030.00617.61
8.1.10.0030.00617.59
8.1.00.0000.00817.49
8.0.300.0040.00418.78
8.0.290.0000.00716.88
8.0.280.0030.00318.44
8.0.270.0030.00317.11
8.0.260.0000.00617.09
8.0.250.0030.00616.93
8.0.240.0090.00016.84
8.0.230.0000.00716.83
8.0.220.0040.00416.81
8.0.210.0000.00716.88
8.0.200.0000.00616.93
8.0.190.0030.00617.00
8.0.180.0000.00716.86
8.0.170.0000.00816.93
8.0.160.0050.00516.95
8.0.150.0050.00216.81
8.0.140.0030.00716.94
8.0.130.0030.00313.38
8.0.120.0080.00016.98
8.0.110.0080.00016.82
8.0.100.0040.00416.79
8.0.90.0080.00016.98
8.0.80.0120.00316.89
8.0.70.0040.00416.82
8.0.60.0000.00816.94
8.0.50.0070.00016.88
8.0.30.0070.01017.14
8.0.20.0070.01217.40
8.0.10.0070.00016.99
8.0.00.0110.00616.79
7.4.330.0060.00015.08
7.4.320.0060.00016.48
7.4.300.0030.00316.50
7.4.290.0030.00316.61
7.4.280.0050.00216.61
7.4.270.0030.00316.51
7.4.260.0000.00716.47
7.4.250.0000.00716.45
7.4.240.0020.00516.53
7.4.230.0000.00716.63
7.4.220.0100.00716.44
7.4.210.0150.00316.48
7.4.200.0070.00016.48
7.4.160.0090.00616.46
7.4.150.0090.00917.40
7.4.140.0130.01317.86
7.4.130.0110.00816.44
7.4.120.0080.00816.44
7.4.110.0090.00916.58
7.4.100.0030.01416.46
7.4.90.0170.00316.52
7.4.80.0090.00919.39
7.4.70.0140.01016.41
7.4.60.0060.01216.35
7.4.50.0000.01516.42
7.4.40.0140.00316.46
7.4.30.0100.00716.54
7.4.00.0120.00514.99
7.3.330.0030.00313.34
7.3.320.0030.00313.27
7.3.310.0070.00016.23
7.3.300.0030.00316.22
7.3.290.0080.00916.34
7.3.280.0110.00516.34
7.3.270.0140.00317.40
7.3.260.0120.00916.30
7.3.240.0120.00616.29
7.3.230.0170.00016.55
7.3.210.0080.00816.45
7.3.200.0090.00716.55
7.3.190.0070.01116.36
7.3.180.0140.00616.38
7.3.170.0100.01016.27
7.3.160.0030.01216.51
7.3.120.0060.01215.00
7.3.110.0000.01314.64
7.3.100.0040.01114.78
7.3.90.0080.00314.57
7.3.80.0040.00414.49
7.3.70.0080.00414.84
7.3.60.0080.00314.88
7.3.50.0040.00414.87
7.3.40.0000.01414.89
7.3.30.0030.00914.82
7.3.20.0060.00916.63
7.3.10.0120.00416.58
7.3.00.0110.00616.64
7.2.330.0100.00716.62
7.2.320.0130.01016.45
7.2.310.0100.00716.72
7.2.300.0100.00716.54
7.2.290.0120.01216.74
7.2.250.0030.01615.16
7.2.240.0030.01715.15
7.2.230.0040.00815.20
7.2.220.0030.00915.04
7.2.210.0030.00614.79
7.2.200.0060.00614.79
7.2.190.0090.00615.04
7.2.180.0030.00915.02
7.2.170.0040.00415.07
7.2.130.0080.00416.50
7.2.120.0060.01016.93
7.2.110.0190.00016.73
7.2.100.0060.00616.43
7.2.90.0100.00716.83
7.2.80.0180.00616.70
7.2.70.0000.01416.68
7.2.60.0060.01116.87
7.2.50.0090.00316.68
7.2.40.0120.00316.83
7.2.30.0060.00616.88
7.2.20.0210.00616.82
7.2.10.0100.00616.82
7.2.00.0060.00917.99
7.1.330.0090.00615.77
7.1.320.0040.01115.65
7.1.310.0140.00015.80
7.1.300.0040.01115.84
7.1.290.0030.00615.50
7.1.280.0000.01315.70
7.1.270.0090.00015.57
7.1.260.0030.01015.86
7.1.250.0130.00315.52
7.1.240.0100.00715.50
7.1.230.0130.00615.75
7.1.220.0090.00315.66
7.1.210.0040.00815.71
7.1.200.0080.00715.55
7.1.190.0130.00615.37
7.1.180.0110.00315.46
7.1.170.0130.00615.53
7.1.160.0070.00715.56
7.1.150.0060.00615.88
7.1.140.0140.00415.55
7.1.130.0140.00615.67
7.1.120.0130.01015.68
7.1.110.0140.01015.59
7.1.100.0070.01016.97
7.1.90.0150.00815.80
7.1.80.0100.01315.90
7.1.70.0040.01016.45
7.1.60.0130.00717.45
7.1.50.0040.01516.30
7.1.40.0030.01015.51
7.1.30.0140.00615.52
7.1.20.0050.01415.69
7.1.10.0090.00915.49
7.1.00.0100.03918.88
7.0.330.0060.00914.95
7.0.320.0110.00715.54
7.0.310.0030.00915.24
7.0.300.0110.00415.09
7.0.290.0060.00915.37
7.0.280.0070.00715.44
7.0.270.0180.00015.25
7.0.260.0190.00515.56
7.0.250.0180.00515.58
7.0.240.0160.00415.25
7.0.230.0090.00915.45
7.0.220.0110.00615.40
7.0.210.0200.00015.27
7.0.200.0310.00515.18
7.0.190.0110.00715.46
7.0.180.0140.00715.34
7.0.170.0130.00415.04
7.0.160.0040.01215.13
7.0.150.0150.00415.25
7.0.140.0130.00615.30
7.0.130.0150.00415.57
7.0.120.0060.00615.45
7.0.110.0060.00615.21
7.0.100.0070.00715.33
7.0.90.0060.00915.11
7.0.80.0120.00315.53
7.0.70.0170.00015.41
7.0.60.0130.02317.44
7.0.50.0070.03516.50
7.0.40.0050.02416.59
7.0.30.0130.02316.86
7.0.20.0150.04016.90
7.0.10.0020.03016.56
7.0.00.0050.04316.90
5.6.380.0030.01013.75
5.6.370.0080.00014.23
5.6.360.0060.00314.08
5.6.350.0030.00913.98
5.6.340.0060.00614.13
5.6.330.0040.00714.02
5.6.320.0040.00913.88
5.6.310.0000.01413.96
5.6.300.0060.00613.98
5.6.290.0120.00013.83
5.6.280.0070.01817.38
5.6.270.0060.00613.99
5.6.260.0030.00713.75
5.6.250.0100.00313.77
5.6.240.0100.00313.86
5.6.230.0000.01114.06
5.6.220.0080.00313.71
5.6.210.0050.02817.12
5.6.200.0100.03815.95
5.6.190.0080.02517.34
5.6.180.0170.03717.07
5.6.170.0210.02517.17
5.6.160.0030.03117.30
5.6.150.0080.03815.81
5.6.140.0060.02316.08
5.6.130.0090.04516.00
5.6.120.0090.02717.33
5.6.110.0060.02317.40
5.6.100.0020.02517.45
5.6.90.0070.04517.45
5.6.80.0080.03717.10
5.6.70.0040.00713.63
5.6.60.0110.00313.77
5.6.50.0040.00413.89
5.6.40.0040.00413.65
5.6.30.0060.00613.78
5.6.20.0070.00413.64
5.6.10.0070.00713.98
5.6.00.0060.00913.90
5.5.380.0030.00711.11
5.5.370.0000.01010.90
5.5.360.0040.00411.08
5.5.350.1850.01815.64
5.5.340.0030.02014.44
5.5.330.0020.03415.54
5.5.320.0270.02215.60
5.5.310.0150.03015.57
5.5.300.0050.02314.42
5.5.290.0050.04514.50
5.5.280.0080.02615.93
5.5.270.0030.02415.85
5.5.260.0060.02215.77
5.5.250.0080.04215.73
5.5.240.0100.04015.54
5.5.230.0000.00710.90
5.5.220.0030.00610.95
5.5.210.0040.00810.90
5.5.200.0000.00710.90
5.5.190.0040.00710.90
5.5.180.0100.00010.90
5.5.170.0050.00510.90
5.5.160.0070.00310.90
5.5.150.0030.00710.90
5.5.140.0050.00310.90
5.5.130.0060.00610.90
5.5.120.0030.00310.90
5.5.110.0070.00310.90
5.5.100.0060.00610.90
5.5.90.0030.00610.90
5.5.80.0050.00510.90
5.5.70.0070.00010.98
5.5.60.0080.00310.90
5.5.50.0060.00210.90
5.5.40.0050.00510.90
5.5.30.0000.00610.90
5.5.20.0030.00310.90
5.5.10.0000.01210.90
5.5.00.0070.00310.90

preferences:
71.74 ms | 401 KiB | 5 Q